Bump aws-actions/amazon-ecr-login from 1 to 2 #473
Workflow file for this run
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: 'Validate pull request' | |
on: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
pre-commit: | |
name: 'Pre-commit check' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Setup node' | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: actions/create-datadog-downtime/.nvmrc | |
cache: npm | |
cache-dependency-path: actions/create-datadog-downtime/package-lock.json | |
- name: 'Install dependencies' | |
run: npm ci | |
working-directory: actions/create-datadog-downtime | |
- name: 'Run pre-commit' | |
uses: pre-commit/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
test: | |
name: 'Run tests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Setup Homebrew' | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: 'Install bats' | |
run: brew install bats-core | |
- name: 'Run action tests' | |
run: bats -r actions/*/*.bats | |
node-tests: | |
name: 'Run node unit tests' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
action: | |
- create-datadog-downtime | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v2 | |
- name: 'Setup node' | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: actions/${{ matrix.action }}/.nvmrc | |
cache: npm | |
cache-dependency-path: actions/${{ matrix.action }}/package-lock.json | |
- name: 'Install dependencies' | |
run: npm ci | |
working-directory: actions/${{ matrix.action }} | |
- name: 'Run tests' | |
run: npm test | |
working-directory: actions/${{ matrix.action }} |