Skip to content

Daily dictionary update #239

Daily dictionary update

Daily dictionary update #239

Workflow file for this run

name: CI
on:
push:
branches: [ main, beta ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
main:
name: Default
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: NPM install
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Configure report URL
run: echo "ALLURE_URL=https://isv-utils-allure-${{ github.run_number }}.surge.sh" >> $GITHUB_ENV
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
id: test
run: npm test
continue-on-error: true
- name: Generate Allure report
if: steps.test.outcome == 'failure'
run: scripts/allure.sh
env:
ALLURE_URL: ${{ env.ALLURE_URL }}
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
- name: Replace report link to PR
if: github.event_name == 'pull_request' && steps.test.outcome == 'failure'
uses: thollander/actions-comment-pull-request@v2
with:
message: 'View the deployed report at [surge.sh](${{ env.ALLURE_URL }})'
comment_tag: 'allure-report'
- name: Abort if tests failed
if: steps.test.outcome == 'failure'
run: exit 1
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate docs
if: github.ref == 'refs/heads/main'
run: npm run docs
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/docs
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Semantic release
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
run: npx --no-install semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}