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

Commit 0e6b62a

Browse files
authored
Run tests and lint in parallel (#350)
* Run tests and lint in parallel Signed-off-by: Kevin Su <pingsutw@apache.org> * Run tests and lint in parallel Signed-off-by: Kevin Su <pingsutw@apache.org> * test Signed-off-by: Kevin Su <pingsutw@apache.org> * test Signed-off-by: Kevin Su <pingsutw@apache.org> * test Signed-off-by: Kevin Su <pingsutw@apache.org> * test Signed-off-by: Kevin Su <pingsutw@apache.org> * nit Signed-off-by: Kevin Su <pingsutw@apache.org> * lint Signed-off-by: Kevin Su <pingsutw@apache.org> --------- Signed-off-by: Kevin Su <pingsutw@apache.org>
1 parent 2afc441 commit 0e6b62a

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

.github/workflows/master.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
args: release --rm-dist
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
45-
tests-lint:
46-
name: Run tests and lint
45+
tests:
46+
name: Run tests
4747
runs-on: ubuntu-latest
4848
steps:
4949
- uses: actions/checkout@v2
@@ -61,5 +61,16 @@ jobs:
6161
file: coverage.txt
6262
flags: unittests
6363
fail_ci_if_error: false
64+
lint:
65+
name: Run lint
66+
runs-on: ubuntu-latest
67+
steps:
68+
- uses: actions/checkout@v2
69+
with:
70+
fetch-depth: "0"
71+
- name: Set up Go
72+
uses: actions/setup-go@v2
73+
with:
74+
go-version: '1.19'
6475
- name: Lint
6576
run: make install && make lint

.github/workflows/pull_request.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Pull Request
33
on: pull_request
44

55
jobs:
6-
tests-lint:
7-
name: Run tests and lint
6+
tests:
7+
name: Run tests
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
@@ -21,6 +21,17 @@ jobs:
2121
file: coverage.txt
2222
flags: unittests
2323
fail_ci_if_error: false
24+
25+
lint:
26+
name: Run lint
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
- name: Set up Go
32+
uses: actions/setup-go@v2
33+
with:
34+
go-version: '1.19'
2435
- name: Lint
2536
run: make install && make lint
2637

0 commit comments

Comments
 (0)