Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build: update CI/CD configs to use latest actions
  • Loading branch information
NoNameProvided committed Jan 13, 2022
1 parent 60db62a commit 416e360
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/continuous-deployment-workflow.yml
Expand Up @@ -8,9 +8,10 @@ jobs:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org
- run: npm ci --ignore-scripts
- run: npm run prettier:check
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/continuous-integration-workflow.yml
Expand Up @@ -5,38 +5,33 @@ jobs:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- run: npm run prettier:check
- run: npm run lint:check
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['10.x', '12.x', '14.x']
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setting up Node.js (v${{ matrix.node-version }}.x)
uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: node --version
name: Check Node.js version
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- run: npm run test:ci
- run: npm install codecov -g
if: ${{ matrix.node-version == '14.x' }}
- run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.node-version == '14.x' }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- run: npm ci --ignore-scripts
- run: npm run build:es2015
- run: npm run build:esm5
Expand Down

0 comments on commit 416e360

Please sign in to comment.