diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d4c60a8..055ddf5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f7518c..7d9f5be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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' }} @@ -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/goreportcard-action@v1.0 diff --git a/.gitignore b/.gitignore index 695a2d4..4f15cf8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *_skeleton.go /build /node_modules -yarn.lock \ No newline at end of file +yarn.lock +bun.lockb \ No newline at end of file