Run yarn dedupe
#1067
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: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn run build | |
test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn run build | |
- name: Run tests | |
run: | | |
yarn run start & | |
while ! curl --head --silent --output /dev/null $LINK_CARD_TEST_URL; do | |
echo -n . | |
sleep 0.1 | |
done | |
yarn run coverage | |
env: | |
LINK_CARD_TEST_URL: http://127.0.0.1:3000/ | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn run lint | |
typecheck: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn run typecheck |