chore: update node from v16 to v20 #49
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: Push Module | |
on: | |
push: | |
branches: | |
[main] | |
paths: | |
- 'push-module/**' | |
- '.github/workflows/push-module-*' | |
- 'lib' | |
pull_request: | |
paths: | |
- 'push-module/**' | |
- '.github/workflows/push-module-*' | |
- 'lib' | |
jobs: | |
unit: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- run: npm ci | |
- run: npm test --workspace push-module | |
integration: | |
name: Integration Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v0' | |
with: | |
credentials_json: ${{ secrets.BW_EE_LABS_REGISTRY_KEY }} | |
create_credentials_file: true | |
- uses: google-github-actions/setup-gcloud@v0 | |
- uses: ./push-module | |
with: | |
bundleId: test-app1 | |
version: 0.1.1-SNAPSHOT | |
metadataBucket: gs://bw-ee-labs-slipstream-github-action-test | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@main | |
with: | |
node-version-file: .nvmrc | |
- run: npm ci | |
- run: npm run build --workspace push-module | |
- run: ./scripts/assert-git-clean.sh |