Skip to content

Commit

Permalink
Updated CI (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b authored Dec 15, 2024
1 parent 231c917 commit a43132b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.23.0'
go-version-file: 'worker-core/go.mod'
cache-dependency-path: |
worker-core/go.mod
worker-core/go.sum
- name: Build worker wasm
working-directory: ./worker-core
run: GOOS=js GOARCH=wasm go build -o worker.wasm -v .

- name: Test GO code
- name: Test Go code
working-directory: ./worker-core
run: go test -v -timeout 1m -coverprofile=coverage.out -json ./internal/... > test-report.out

Expand All @@ -46,7 +49,7 @@ jobs:
run: yarn test --color=true

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit a43132b

Please sign in to comment.