From f32f07fe9588fca1178b182d19099b5870524b04 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 19 May 2023 11:34:18 -0700 Subject: [PATCH] Run tests and lint in parallel (#350) * Run tests and lint in parallel Signed-off-by: Kevin Su * Run tests and lint in parallel Signed-off-by: Kevin Su * test Signed-off-by: Kevin Su * test Signed-off-by: Kevin Su * test Signed-off-by: Kevin Su * test Signed-off-by: Kevin Su * nit Signed-off-by: Kevin Su * lint Signed-off-by: Kevin Su --------- Signed-off-by: Kevin Su --- flyteplugins/.github/workflows/master.yml | 15 +++++++++++++-- flyteplugins/.github/workflows/pull_request.yml | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/flyteplugins/.github/workflows/master.yml b/flyteplugins/.github/workflows/master.yml index 4a18b52678..0dc07253b4 100644 --- a/flyteplugins/.github/workflows/master.yml +++ b/flyteplugins/.github/workflows/master.yml @@ -42,8 +42,8 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} - tests-lint: - name: Run tests and lint + tests: + name: Run tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -61,5 +61,16 @@ jobs: file: coverage.txt flags: unittests fail_ci_if_error: false + lint: + name: Run lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.19' - name: Lint run: make install && make lint diff --git a/flyteplugins/.github/workflows/pull_request.yml b/flyteplugins/.github/workflows/pull_request.yml index 03cbc463f6..52f6e89c30 100644 --- a/flyteplugins/.github/workflows/pull_request.yml +++ b/flyteplugins/.github/workflows/pull_request.yml @@ -3,8 +3,8 @@ name: Pull Request on: pull_request jobs: - tests-lint: - name: Run tests and lint + tests: + name: Run tests runs-on: ubuntu-latest steps: - name: Checkout @@ -21,6 +21,17 @@ jobs: file: coverage.txt flags: unittests fail_ci_if_error: false + + lint: + name: Run lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.19' - name: Lint run: make install && make lint