node.esm.yml 513 B

12345678910111213141516171819202122232425262728
  1. name: ci
  2. on:
  3. push:
  4. branches: ["main"]
  5. pull_request:
  6. branches: ["main"]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [16.x, 18.x]
  13. steps:
  14. - uses: actions/checkout@v3
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v3
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. cache: "yarn"
  20. - run: yarn install
  21. - run: yarn audit
  22. - run: yarn build
  23. - run: yarn test