Skip to content

add example

add example #2

Workflow file for this run

name: Lint and build
on: [push]
jobs:
lint-build:
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
env:
DATABASE_URL: 'mysql://root:[email protected]:3306/checkpoint'