Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
build: test gopherjs transpilation prior to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Oct 29, 2023
1 parent 3c2c9f5 commit 522a0a9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
unit-tests:
strategy:
matrix:
go-version: [1.x, 1.21.x]
go-version: [1.x, 1.18.x]
platform: [ubuntu-latest]
include:
- go-version: 1.x
Expand All @@ -41,6 +41,11 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

- name: Install gopherjs
run: go install go install github.com/gopherjs/gopherjs@v1.18.0-beta3
- name: Transpile gojs-cvss
run: gopherjs build .

- name: Run go test
run: go test -v -race -coverprofile coverage.txt ./...

Expand All @@ -50,17 +55,14 @@ jobs:
with:
path-to-profile: coverage.txt

- name: Transpile gojs-cvss
run: make build

go-lint:
runs-on: ubuntu-latest
needs: [setup]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.18.x

- name: go-lint
uses: golangci/golangci-lint-action@v3

0 comments on commit 522a0a9

Please sign in to comment.