diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6abcd2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Node CI + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + node_version: [18.x, 20.x] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '1' + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node_version }} + registry-url: 'https://registry.yarnpkg.com' + - name: install pnpm + run: npm i pnpm@latest -g + - run: pnpm install + - run: pnpm build + - run: pnpm test --forceExit + env: + CI: true + HEADLESS: false + PROGRESS: none + NODE_ENV: test \ No newline at end of file