build(deps-dev): bump vite from 3.2.7 to 3.2.8 (#31) #22
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: | |
- master | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [16] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@master | |
- name: Setup node env π | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Cache node_modules π¦ | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies π¨π»βπ» | |
run: npm ci | |
- name: Build project | |
run: npm run build | |
- name: Sort imports | |
run: npx @maikudou/import-sorter . | |
- name: Run format π | |
run: npm run format | |
- name: Run lint π | |
run: npm run lint | |
- name: Run test π | |
run: npm run test | |
- uses: EndBug/add-and-commit@v7 | |
with: | |
message: 'build: code quality fixes from ci.yml' |