Skip to content

Commit

Permalink
Merge pull request #36 from jerbob92/feature/update-github-actions
Browse files Browse the repository at this point in the history
Update Github Actions
  • Loading branch information
jerbob92 authored Feb 9, 2024
2 parents 086a47d + 67eff26 commit 1810cee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
emscripten: [ "3.1.44", "3.1.45", "3.1.46", "3.1.47", "3.1.48", "3.1.49", "3.1.50", "3.1.51", "3.1.52", "3.1.53" ]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: mymindstorm/setup-emsdk@v11
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ matrix.emscripten }}
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Recompile examples
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
COVERAGE_GO_VERSION: "1.22"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Vet all packages
Expand All @@ -42,12 +42,13 @@ jobs:
go test -timeout 30m `go list ./... | grep -v examples | grep -v generated` -coverpkg=-coverpkg=`go list ./... | grep -v examples | grep -v generated | tr '\n' ','` -coverprofile=coverage.out -covermode=atomic -v
- name: Archive code coverage results
if: matrix.os == 'ubuntu-latest' && matrix.go == env.COVERAGE_GO_VERSION
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ./coverage.out
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.go == env.COVERAGE_GO_VERSION
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 1810cee

Please sign in to comment.