Skip to content

Merge pull request #29 from hougesen/dependabot/npm_and_yarn/word-wra… #21

Merge pull request #29 from hougesen/dependabot/npm_and_yarn/word-wra…

Merge pull request #29 from hougesen/dependabot/npm_and_yarn/word-wra… #21

Workflow file for this run

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'