Update dependency @types/node to v18.19.21 #84
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
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
pull-requests: write | |
deployments: write | |
id-token: write | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install # will run `yarn install` command | |
- name: Install Dependencies | |
run: yarn --frozen-lockfile --prefer-offline | |
- name: Linting | |
run: yarn lint | |
- name: Format Source Code | |
run: yarn format | |
- name: Unit Tests | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
- name: Test Action Lowercase | |
id: lowercase | |
uses: ./ # Uses an action in the root directory | |
with: | |
operation: 'lowercase' | |
input-string: 'Hello World' | |
- name: Test Action UpperCase | |
id: uppercase | |
uses: ./ # Uses an action in the root directory | |
with: | |
operation: 'uppercase' | |
input-string: 'Hello World' | |
- name: Test Action Kebabcase | |
id: kebabcase | |
uses: ./ # Uses an action in the root directory | |
with: | |
operation: 'kebabcase' | |
input-string: 'Hello World feature/UI-123_my-feature' | |
- name: Test Action DNS Subdomain | |
id: dns-subdomain | |
uses: ./ # Uses an action in the root directory | |
with: | |
operation: 'dns-subdomain' | |
input-string: 'HelloWorldFromSomeReallyLongStringThatWillBeTruncatedUsingTheMaxLengthOption' | |
- name: Test Action Invalid Operation | |
id: invalid-operation | |
uses: ./ # Uses an action in the root directory | |
continue-on-error: true | |
with: | |
operation: 'invalid-operation' | |
input-string: 'Hello World' | |
- name: Check Outputs | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
if('${{steps.lowercase.outputs.output-string}}' !== 'hello world') { | |
core.setFailed('Lowercase test failed') | |
} | |
if('${{steps.uppercase.outputs.output-string}}' !== 'HELLO WORLD') { | |
core.setFailed('Uppercase test failed') | |
} | |
if('${{steps.kebabcase.outputs.output-string}}' !== 'hello-world-feature-ui-123-my-feature') { | |
core.setFailed('Kebabcase test failed') | |
} | |