Bump semver from 5.7.1 to 5.7.2 #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test and build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '15' | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: yarn-${{ runner.OS }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
yarn-${{ runner.OS }}-${{ env.cache-name }} | |
yarn-${{ runner.OS }}- | |
- name: Install dependencies | |
# "--frozen-lockfile" doesn't work, see https://github.com/yarnpkg/yarn/issues/5840 | |
run: | | |
yarn install | |
if [[ -n "$(git status -s yarn.lock)" ]] ; then | |
echo "yarn.lock is outdated" | |
exit 1 | |
fi | |
- name: Run tests | |
run: yarn test | |
- name: Build | |
run: yarn build |