mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-21 09:39:24 +00:00
Fixes https://github.com/google-github-actions/setup-gcloud/issues/714 by updating the setup-cloud-sdk action to the latest version which implements retries for all errors (not just HTTP).
51 lines
993 B
YAML
51 lines
993 B
YAML
name: 'Unit'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**/*'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**/*'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: 'read'
|
|
statuses: 'write'
|
|
|
|
defaults:
|
|
run:
|
|
shell: 'bash'
|
|
|
|
jobs:
|
|
unit:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- 'ubuntu-latest'
|
|
- 'windows-latest'
|
|
- 'macos-latest'
|
|
runs-on: '${{ matrix.os }}'
|
|
|
|
steps:
|
|
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
|
|
|
|
- uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4
|
|
with:
|
|
node-version-file: 'package.json'
|
|
|
|
- name: 'npm ci'
|
|
run: 'npm ci'
|
|
|
|
- name: 'npm build'
|
|
run: 'npm run build'
|
|
|
|
- name: 'test'
|
|
run: 'npm test'
|