Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Jun 20, 2021
1 parent 9242551 commit 26fdb6a
Show file tree
Hide file tree
Showing 5 changed files with 6,257 additions and 16,523 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build
- run: npm run test-coverage
node-version: 14
- uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- run: yarn build
- run: yarn test-coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build
node-version: 14
- uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- run: yarn build
- name: Publish to npm
uses: pascalgn/npm-publish-action@1.3.3
env:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm run build
- run: npm run test-coverage
node-version: 14
- uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- run: yarn build
- run: yarn test-coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 26fdb6a

Please sign in to comment.