Skip to content

fix: package.json & yarn.lock to reduce vulnerabilities #14

fix: package.json & yarn.lock to reduce vulnerabilities

fix: package.json & yarn.lock to reduce vulnerabilities #14

name: Build and Run Tests
on: [push]
jobs:
build-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE checkpoint;' -uroot -proot
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn test
env:
DATABASE_URL: 'mysql://root:[email protected]:3306/checkpoint'