chore(release): v1.0.0 via release-it (auto, ci env) #5
Workflow file for this run
This file contains hidden or 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
# ./github/workflows/lint-test.yml | |
# | |
# Per push, PR, or manual trigger, | |
# run Super-Linter and report coverage to Codecov. | |
name: Lint and Test | |
# Run all-around linting and testing per every push and PR. | |
on: | |
push : | |
pull_request : | |
workflow_dispatch: | |
jobs: | |
run-super-linter: | |
name : Run Super-Linter | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # For checking out the code. | |
statuses: write # For reporting GitHub Actions status checks. | |
steps: | |
- name: Checkout code | |
uses: 'actions/checkout@v4' | |
with: | |
# super-linter needs the full git history to get the | |
# list of files that changed across commits. | |
fetch-depth: 0 | |
- name: Run super-linter | |
uses: 'super-linter/super-linter@v6' | |
env : | |
# For reporting GitHub Actions status checks. | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
report-codecov: | |
name : Report Codecov | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
statuses: write | |
# Current default Node.js version is 18.x. | |
strategy: | |
matrix: | |
node-version: | |
- ${{ vars.DEFAULT_NODE_MAJOR_VERSION }}.x | |
- 20.x | |
- 22.x | |
steps: | |
- name: Checkout code | |
uses: 'actions/checkout@v4' | |
# IMPORTANT!! when using pnpm, | |
# you MUST follow this EXACT order of: | |
# 1. Setup pnpm; | |
# 2. Install dependencies; | |
# 3. Setup Node.js; | |
# 4. Run tests. | |
- name: Install pnpm | |
uses: 'pnpm/action-setup@v4' | |
with: | |
version: ${{ vars.DEFAULT_PNPM_FULL_VERSION }} | |
# WARNING! | |
# Do NOT use 'latest' as the version for pnpm. | |
# 'latest' may fall behind the actual latest stable release of pnpm. | |
- name: Install dependencies | |
run : pnpm install | |
- name: Set up Node.js ${{ vars.DEFAULT_NODE_MAJOR_VERSION }} | |
uses: 'actions/setup-node@v4' | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache : pnpm | |
- name: Run tests | |
run : pnpm test:coverage | |
# Only upload coverage reports for the default Node.js version. | |
- name: Upload coverage reports to Codecov | |
if : matrix.node-version == ${{ vars.DEFAULT_NODE_MAJOR_VERSION }}.x | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug : KemingHe/OSU | |