From 6779b009ee659eb08a0cd6afae318a4c13bf872c Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez Date: Sat, 29 Apr 2023 11:39:25 +0200 Subject: [PATCH] fixes CI (#19) * Rename workflow from lint to ci Signed-off-by: Friedrich Gonzalez * Run on push and pull_requests for main Signed-off-by: Friedrich Gonzalez * Use ubuntu-latest Signed-off-by: Friedrich Gonzalez --------- Signed-off-by: Friedrich Gonzalez --- .github/workflows/{lint.yaml => ci.yaml} | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{lint.yaml => ci.yaml} (83%) 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