Skip to content

first commit

first commit #1

name: Build and test
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
build-and-test:
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: yarn
- name: Compile Typescript
run: yarn build
- name: Run tests
run: yarn test