chore(deps): update dependency ubuntu to v22 (#35) #53
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install pnpm | |
run: npm install -g pnpm@8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check formatting of project files (staged) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: pnpm format:staged | |
- name: Check formatting of project files (non-staged) | |
if: ${{ github.event_name != 'pull_request' }} | |
run: pnpm format | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install pnpm | |
run: npm install -g pnpm@8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm lint && pnpm lint:styles | |
license: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install pnpm | |
run: npm install -g pnpm@8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: License check | |
run: pnpm lint:license |