diff --git a/.github/workflows/lint.yaml b/.github/workflows/ci.yaml similarity index 83% rename from .github/workflows/lint.yaml rename to .github/workflows/ci.yaml index b1ad62b..dbfd6c0 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/ci.yaml @@ -1,11 +1,14 @@ name: CI on: + push: + branches: [ main ] pull_request: + branches: [ main ] jobs: lint: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest container: quay.io/cortexproject/cortex-jsonnet-build-image:c924d52 steps: - uses: actions/checkout@v2 @@ -19,7 +22,7 @@ jobs: - name: "Lint playbooks" run: make lint-playbooks build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest container: quay.io/cortexproject/cortex-jsonnet-build-image:c924d52 steps: - uses: actions/checkout@v2 @@ -30,7 +33,7 @@ jobs: - name: "Build mixin" run: make build-mixin readme: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest container: quay.io/cortexproject/cortex-jsonnet-build-image:c924d52 steps: - uses: actions/checkout@v2 @@ -39,4 +42,4 @@ jobs: fetch-depth: 0 - name: "Test readme" - run: make test-readme \ No newline at end of file + run: make test-readme