diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..b1152ba --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,25 @@ +# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v4 + - name: Install Dependencies + run: npm ci --no-fund + - name: Test Format + run: npm run test:format + - name: Unit Tests + run: npm run test:unit + - name: Build + run: npm run build