diff options
Diffstat (limited to '.github/workflows/cicd.yml')
-rw-r--r-- | .github/workflows/cicd.yml | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 50e38ac319..dbc247c94c 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,30 +1,15 @@ --- -name: CI/CD for push -on: [push] +name: CI/CD +on: [push, pull_request] jobs: build: name: Build and test runs-on: ubuntu-latest container: ultimaker/cura-build-environment steps: - - name: Checkout code + - name: Checkout master uses: actions/checkout@v1 - name: Build and test env: GIT_REF_NAME: github.ref run: docker/build.sh - -name: CI/CD for pull_request -on: [pull_request] -jobs: - build: - name: Build and test - runs-on: ubuntu-latest - container: ultimaker/cura-build-environment - steps: - - name: Checkout code - uses: actions/checkout@v1 - - name: Build and test - env: - GIT_REF_NAME: github.base_ref - run: docker/build.sh |