Update actions/dependency-review-action action to v3.0.8 #507
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: Builds, tests & co | |
on: | |
- push | |
- pull_request | |
jobs: | |
hygiene: | |
name: Hygiene | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # v3.8.0 | |
with: | |
node-version: 16.x | |
- name: Install npm packages | |
run: yarn install --immutable | |
- name: Check formatting | |
run: yarn fmt:check | |
- name: Check lint | |
run: yarn lint | |
- name: Check type | |
run: yarn typecheck | |
- name: Ensure dist directory is up-to-date | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
yarn build | |
if [ "$(git status dist --porcelain | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
exit 1 | |
fi | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Use latest Pulumi | |
uses: ./ | |
build-and-push: | |
name: Build and Push | |
if: ${{ github.event_name == 'pull_request' && github.actor == 'renovate[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
fetch-depth: 2 | |
ref: ${{ github.head_ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
token: ${{ secrets.PAT }} | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # v3.8.0 | |
with: | |
node-version: 16.x | |
- name: Install npm packages | |
run: yarn install --immutable | |
- name: Run build | |
run: yarn build | |
- name: Get last commit message | |
id: last-commit-message | |
run: echo "message=$(git log -1 --pretty=%s)" >>"$GITHUB_OUTPUT" | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0 | |
with: | |
commit_message: ${{ steps.last-commit-message.outputs.message }} | |
commit_options: --amend --no-edit | |
push_options: --force | |
skip_fetch: true |