refactor: warning on unsupported runtimes #2007
This file contains 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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '55 11 * * 1' | |
workflow_dispatch: | |
jobs: | |
audit: | |
if: ${{ github.repository == 'panva/node-oidc-provider' || github.event_name == 'workflow_dispatch' }} | |
uses: panva/.github/.github/workflows/npm-audit.yml@main | |
test: | |
if: ${{ github.repository == 'panva/node-oidc-provider' || github.event_name == 'workflow_dispatch' }} | |
name: Test Suite | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ !startsWith(matrix.node-version, 'lts') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
- lts/hydrogen # 18 | |
- current | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
id: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
check-latest: true | |
- run: npm clean-install | |
- run: npm run ci | |
# deploy: | |
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'panva/node-oidc-provider' }} | |
# runs-on: ubuntu-latest | |
# needs: | |
# - test | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# app: | |
# - radiant-refuge-93411 | |
# - powerful-cove-31049 | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# - uses: ruby/setup-ruby@v1 | |
# with: | |
# ruby-version: '2.7' | |
# - run: gem install dpl-heroku -v 1.10.14 | |
# - run: dpl --provider=heroku --strategy=api --api-key=${{ secrets.HEROKU_AUTH_TOKEN }} --app=${{ matrix.app }} |