Skip to content

Commit

Permalink
ci: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Mar 13, 2024
1 parent c742a26 commit 8f93cf3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Install dependenvies
run: bun install

- name: Generate API doc
run: bun x typedoc
- name: Copy index.d.ts
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Test
run: go test -count 1 -race -coverprofile=coverage.txt ./...
- name: Short Test
run: go test -short -count 1 ./...

- name: Coverage Test
if: ${{ matrix.platform == 'ubuntu-latest' && github.ref_name == 'master' }}
run: go test -short -count 1 -coverprofile=coverage.txt ./...

- name: Upload Coverage
if: ${{ matrix.platform == 'ubuntu-latest' && github.ref_name == 'master' }}
Expand All @@ -37,6 +41,10 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
slug: szkiba/xk6-faker

- name: Full Test
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: go test -count 1 -race ./...

- name: Generate Go Report Card
if: ${{ matrix.platform == 'ubuntu-latest' && github.ref_name == 'master' }}
uses: creekorful/[email protected]
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*_skeleton.go
/build
/node_modules
yarn.lock
yarn.lock
bun.lockb

0 comments on commit 8f93cf3

Please sign in to comment.