diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 4a18b52678..0dc07253b4 100644 --- a/.github/workflows/master.yml +++ b/.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/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 03cbc463f6..52f6e89c30 100644 --- a/.github/workflows/pull_request.yml +++ b/.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