Skip to content

Commit

Permalink
Assume the tests have passed when release is created
Browse files Browse the repository at this point in the history
  • Loading branch information
surilindur committed Mar 25, 2024
1 parent afffd9d commit fca73d9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 67 deletions.
56 changes: 55 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,59 @@ concurrency:

jobs:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- uses: actions/cache@v4
with:
path: '**/.yarn'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: corepack enable
- run: yarn install --immutable
- run: yarn run lint

test:
uses: ./.github/workflows/test.yml
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node-version:
- 18.x
- 20.x
- latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: git config --global core.autocrlf input
- uses: actions/cache@v4
with:
path: '**/.yarn'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: corepack enable
- run: yarn install --immutable
- run: yarn run build
- run: yarn run test
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.node-version }}
parallel: true

coveralls:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Consolidate test coverage from different jobs
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
4 changes: 0 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ permissions:

jobs:

test:
uses: ./.github/workflows/test.yml

publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit fca73d9

Please sign in to comment.