Files
KaTeX/.github/workflows/ci.yml
Erik Demaine e7d38df8d4 chore(deps): update webpack, webpack-cli, webpack-dev-server (#3191)
* chore(deps): update webpack, webpack-cli, webpack-dev-server

Fixes #3189

* injectClient -> client

* Switch WebpackDevServer constructor order

* Switch from listen to start

* Fix missing argument to catch

* chore: dedupe lockfile

* chore: update to Yarn 3.0.1

* ci: run yarn install on semantic release

* ci: use setup-node cache

* chore: update lockfile

Co-authored-by: Ylemkimon <y@ylem.kim>
2021-08-27 13:04:13 +09:00

76 lines
1.7 KiB
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # minimize exposure and prevent accidental pushes
- name: Use Node.js 12
uses: actions/setup-node@v2
with:
node-version: '12'
cache: yarn
- name: Install dependencies
run: yarn --immutable
env:
YARN_ENABLE_SCRIPTS: 0 # disable postinstall scripts
- name: Lint code
run: yarn test:lint
- name: Run Flow
run: yarn test:flow
if: always()
- name: Run Jest tests
run: yarn test:jest --coverage
if: always()
- uses: codecov/codecov-action@v2
with:
directory: ./coverage/
timeout-minutes: 3
release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
environment: release
needs: test
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Use Node.js 12
uses: actions/setup-node@v2
with:
node-version: '12'
cache: yarn
- name: Install dependencies
run: yarn --immutable
env:
YARN_ENABLE_SCRIPTS: 0 # disable postinstall scripts
- name: Run semantic-release
run: yarn run semantic-release --debug
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: KaTeX bot
GIT_AUTHOR_EMAIL: 33710906+KaTeX-bot@users.noreply.github.com
GIT_COMMITTER_NAME: KaTeX bot
GIT_COMMITTER_EMAIL: 33710906+KaTeX-bot@users.noreply.github.com