Skip to content

Commit

Permalink
Merge 99ac80e into 0a9c6b1
Browse files Browse the repository at this point in the history
  • Loading branch information
kobik committed Dec 30, 2021
2 parents 0a9c6b1 + 99ac80e commit 96b498f
Show file tree
Hide file tree
Showing 4 changed files with 6,410 additions and 6,814 deletions.
45 changes: 8 additions & 37 deletions .github/workflows/main.yml
Expand Up @@ -2,7 +2,7 @@ name: CI

on: [ push, pull_request ]
env:
LATEST_NODE: '14'
LATEST_NODE: '16'

jobs:
lockfile-lint:
Expand All @@ -14,13 +14,13 @@ jobs:
with:
node-version: ${{ env.LATEST_NODE }}
- name: lint lock file
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm --validate-https

run: npx lockfile-lint --path package-lock.json --allowed-hosts npm --validate-http
test:
strategy:
matrix:
platform: [ ubuntu-latest ]
node: [ '10', '12', '14' ]
node: [ '10', '12', '14', '16' ]
name: Unit Tests Node ${{ matrix.node }} (${{ matrix.platform }})
needs: lockfile-lint
runs-on: ${{ matrix.platform }}
Expand All @@ -31,42 +31,13 @@ jobs:
node-version: ${{ matrix.node }}
- name: install dependencies
run: npm ci
- name: unit tests
run: npm run test:coverage
- name: lint
if: ${{ matrix.node == env.LATEST_NODE }}
run: npm run lint
- name: units tests
run: npm run test:coverage
- name: Coveralls
if: ${{ matrix.node == env.LATEST_NODE }}
uses: coverallsapp/github-action@master
if: matrix.node == ${{ env.LATEST_NODE }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}


release:
name: release
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
needs: [ test, lockfile-lint ]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: install dependencies
run: npm ci --ignore-scripts
- name: release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,32 @@
name: Release

on: [ workflow_dispatch ]

jobs:
release:
name: release
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: install dependencies
run: npm ci --ignore-scripts
- name: release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 96b498f

Please sign in to comment.