Skip to content

Bump semver from 5.7.1 to 5.7.2 #149

Bump semver from 5.7.1 to 5.7.2

Bump semver from 5.7.1 to 5.7.2 #149

Workflow file for this run

name: Build, Lint, Test and Deploy
on:
push:
branches:
- "*"
pull_request:
branches:
- master
release:
types:
- published
jobs:
build-lint-test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 16
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm ci
- name: Run Linter
run: npm run lint
- name: Build Code
run: npm run build
- name: Run Unit Tests
run: npm run test
- name: Generate Coverage Report
run: npm run coverage
- name: Upload Coverage Report
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: Test on ${{ matrix.os }}
coverage:
name: Code Coverage
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build-lint-test
steps:
- name: Let Coveralls know that all tests have finished
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
publish:
name: Publish Github Action
needs:
- build-lint-test
- coverage
if: github.event_name == 'release'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Update Major Tag
run: |
MAJOR_VERSION=$(git describe --tags | grep -o "v[0-9]*")
git config --global user.name 'HaaLeo'
git config --global user.email '23164374+HaaLeo@users.noreply.github.com'
git tag -afm "Updated tag $MAJOR_VERSION to $(git describe --tags)" $MAJOR_VERSION
git push --tags --force