Skip to content

chore(changelog): v2.0.1 via release-it (auto, ci env) #45

chore(changelog): v2.0.1 via release-it (auto, ci env)

chore(changelog): v2.0.1 via release-it (auto, ci env) #45

Workflow file for this run

# ./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
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'
- name: Install dependencies
run : pnpm install --frozen-lockfile
- name: Set up Node.js ${{ vars.DEFAULT_NODE_MAJOR_VERSION }}
uses: 'actions/setup-node@v4'
with:
node-version: ${{ vars.DEFAULT_NODE_MAJOR_VERSION }}.x
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
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug : KemingHe/OSU