Update dependency prettier to v3.3.3 #134
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: Test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
pull_request: | |
jobs: | |
show-context: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Show github context object | |
run: echo $JSON | |
env: | |
JSON: ${{ toJSON(github) }} | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Parse asdf .tool-versions | |
uses: ./ | |
id: versions | |
with: | |
java: "^(?<distribution>\\w+)-(?<major>\\d+)" | |
- name: Assert outputs | |
run: | | |
[ "${{ steps.versions.outputs.nodejs }}" = "20.11.1" ] | |
[ "${{ steps.versions.outputs.java }}" = "corretto-17.0.5.8.1" ] | |
[ "${{ steps.versions.outputs.java-distribution }}" = "corretto" ] | |
[ "${{ steps.versions.outputs.java-major }}" = "17" ] | |
- name: Parse another asdf .tool-versions by directory path | |
uses: ./ | |
id: by-dir | |
with: | |
path: .github/workflows | |
- name: Assert outputs | |
run: | | |
[ "${{ steps.by-dir.outputs.python }}" = "3.11.4" ] | |
- name: Parse another asdf .tool-versions by file path | |
uses: ./ | |
id: by-file | |
with: | |
path: .github/workflows/.tool-versions | |
- name: Assert outputs | |
run: | | |
[ "${{ steps.by-file.outputs.python }}" = "3.11.4" ] |