diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..98ab806 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,45 @@ +name: CI +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + lint: + name: Typecheck + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Typecheck + run: npm run typecheck + format: + name: Check prettier + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Check formatting + run: npm run format:check + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install node and npm + uses: volta-cli/action@v4 + - name: Install dependencies + run: npm install + - name: Run tests + run: npm run test