Migrate to GHA from publisher #2
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: Basic Tests | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Configure AWS Credentials | |
uses: mapbox/configure-aws-credentials-internal@v5 | |
with: | |
target-account-id: ${{ vars.AWS_ACCOUNT_ID_DEFAULT }} | |
- name: Retrieve and configure npm token | |
uses: mapbox/setup-npm-token@v2 | |
- name: Install npm dependencies | |
run: npm ci --no-fund --no-audit --prefer-offline | |
- name: Test | |
run: npm test |