Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Run tests and lint in parallel #350

Merged
merged 8 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
15 changes: 13 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down