Skip to content

Commit

Permalink
Update Test Workflow (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort authored Sep 9, 2022
1 parent 1590759 commit d8658ae
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Install Staticcheck
run: go install honnef.co/go/tools/cmd/[email protected].2
run: go install honnef.co/go/tools/cmd/[email protected].3

- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Lint Go Code
run: staticcheck ./...
Expand All @@ -38,12 +38,20 @@ jobs:
working-directory: ${{ env.GOPATH }}/src/github.com/trisacrypto/directory
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Cache Speedup
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ env.GOPATH }}/src/github.com/trisacrypto/directory

Expand All @@ -60,7 +68,7 @@ jobs:
go install google.golang.org/grpc/cmd/[email protected]
- name: Clone TRISA repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: trisacrypto/trisa
ref: main
Expand All @@ -73,18 +81,21 @@ jobs:
run: go test -v -coverprofile=coverage.txt -covermode=atomic --race ./...

- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v1.0.0
uses: codecov/codecov-action@v3
with:
# Make sure to add to GitHub secrets!
token: ${{secrets.CODECOV_TOKEN}}
file: ${{ env.GOPATH }}/src/github.com/trisacrypto/directory/coverage.txt
files: ${{ env.GOPATH }}/src/github.com/trisacrypto/directory/coverage.txt
flags: unittests
fail_ci_if_error: false
verbose: true

gds_admin_test:
name: GDS Admin UI Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -105,18 +116,21 @@ jobs:
run: yarn test

- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v1.0.0
uses: codecov/codecov-action@v3
with:
# Make sure to add to GitHub secrets!
token: ${{secrets.CODECOV_TOKEN}}
flags: unittests
fail_ci_if_error: false
verbose: true

gds_user_ui_test:
name: GDS User UI Tests
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v2
Expand All @@ -137,16 +151,19 @@ jobs:
run: yarn test

- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v1.0.0
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
flags: unittests
fail_ci_if_error: false
verbose: true

lingui_gds_ui:
name: Lingui Extract && Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v2
Expand Down Expand Up @@ -182,8 +199,16 @@ jobs:
with:
go-version: 1.18

- name: Cache Speedup
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ env.GOPATH }}/src/github.com/trisacrypto/directory

Expand All @@ -200,7 +225,7 @@ jobs:
go install google.golang.org/grpc/cmd/[email protected]
- name: Clone TRISA repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: trisacrypto/trisa
ref: main
Expand Down

0 comments on commit d8658ae

Please sign in to comment.