chore: bump actions/setup-java from 4.5.0 to 4.6.0 #1243
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: Code Health | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
workflow_dispatch: {} | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: yarn install --check-files | |
- name: compile | |
run: npx projen compile | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: actionlint | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
./actionlint -color | |
shell: bash | |
- name: Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: yarn install --check-files | |
- name: lint | |
run: npx projen eslint | |
shellcheck: | |
name: shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Run ShellCheck | |
uses: bewuethr/shellcheck-action@d01912909579c4b1a335828b8fca197fbb8e0aa4 | |
check-l1-updated: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af | |
with: | |
node-version: 18.x | |
- run: yarn install --check-files | |
- run: npm install -g cdk-import | |
- run: ./scripts/cdk-all.sh | |
- run: npx projen build | |
- name: Find mutations | |
id: self_mutation | |
run: |- | |
git add . | |
git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}" | |
- name: Upload patch | |
if: steps.self_mutation.outputs.self_mutation_happened | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
name: .repo.patch | |
path: .repo.patch | |
- name: Fail build on mutation | |
if: steps.self_mutation.outputs.self_mutation_happened | |
run: |- | |
echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch." | |
cat .repo.patch | |
exit 1 | |
check-examples: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af | |
with: | |
node-version: 18.x | |
- run: yarn install --check-files | |
- run: npm install -g cdk | |
- run: npx projen build | |
- run: npx projen package:js | |
- run: ./scripts/check-examples.sh | |
call-package-workflow: | |
needs: [compile, lint, shellcheck, check-l1-updated, check-examples] | |
secrets: inherit | |
permissions: | |
contents: write | |
pull-requests: read | |
uses: ./.github/workflows/package.yml | |