chore(deps): bump @actions/core from 1.10.1 to 1.11.1 #746
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: CI | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
jobs: | |
install-dependencies: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use NodeJS 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: node_modules cache | |
uses: actions/cache@v4 | |
with: | |
key: node_modules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
node_modules- | |
path: | | |
./node_modules | |
- name: Install dependencies | |
run: yarn | |
lint: | |
runs-on: ubuntu-22.04 | |
needs: install-dependencies | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use NodeJS 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: node_modules global cache restore | |
uses: actions/cache/restore@v4 | |
with: | |
key: node_modules-${{ hashFiles('**/yarn.lock') }} | |
fail-on-cache-miss: true | |
path: | | |
./node_modules | |
- name: Run linting checks | |
run: yarn lint | |
format-check: | |
runs-on: ubuntu-22.04 | |
needs: install-dependencies | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use NodeJS 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: node_modules global cache restore | |
uses: actions/cache/restore@v4 | |
with: | |
key: node_modules-${{ hashFiles('**/yarn.lock') }} | |
fail-on-cache-miss: true | |
path: | | |
./node_modules | |
- name: Run formatting checks | |
run: yarn format-check | |
test-coverage: | |
runs-on: ubuntu-22.04 | |
needs: install-dependencies | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use NodeJS 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: node_modules global cache restore | |
uses: actions/cache/restore@v4 | |
with: | |
key: node_modules-${{ hashFiles('**/yarn.lock') }} | |
fail-on-cache-miss: true | |
path: | | |
./node_modules | |
- name: Run test coverage | |
run: yarn coverage | |
- name: Generate Code Coverage report | |
id: code-coverage | |
uses: ./ | |
with: | |
barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }} | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
barecheck-api-key: ${{ secrets.BARECHECK_API_KEY }} | |
lcov-file: "./coverage/lcov.info" | |
minimum-ratio: 0 | |
send-summary-comment: true | |
show-annotations: "warning" | |
# app-name: "Barecheck" |