Bump versions in github actions #16
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
# A sample CI/CD workflow for Fensak rules. This workflow will: | |
# - Lint the code using `pnpm lint`. | |
# - Run the tests using `pnpm test` and output a junit report. | |
# - Process the junit report and upload to GitHub Actions so that it can be viewed. | |
name: lint-test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
checks: write | |
contents: read | |
jobs: | |
# Run linter and tests against Fensak rules | |
linttest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: false | |
- name: install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: lint | |
run: pnpm lint | |
- name: test | |
run: pnpm test | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: report | |
uses: mikepenz/action-junit-report@75b84e78b3f0aaea7ed7cf8d1d100d7f97f963ec # v4.0.0 | |
if: always() | |
with: | |
report_paths: "junit.xml" | |
check_name: "jest test report" |