ci: 🧪 update CI matrix for ruby 3.2 and node 22 #343
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: | |
| - lts/* | |
| - current | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| registry-url: https://registry.npmjs.org/ | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2 | |
| bundler-cache: true | |
| - run: npm ci | |
| - run: npm run clean | |
| - run: BUNDLE_PATH="$(pwd)/vendor/bundle" npm run build | |
| - run: npm run lint | |
| - run: npm test | |
| - run: npm run example | |
| - run: npm publish | |
| if: ${{ matrix.node-version == 'current' && startsWith(github.ref, 'refs/tags/v') }} | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |