Skip to content

Commit

Permalink
(chore) update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed May 15, 2022
1 parent b84e9e0 commit 2f524bc
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/validate.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: validate
name: ci
on:
push:
branches: ['main']
Expand All @@ -9,45 +9,40 @@ jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: 💾 Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- uses: pnpm/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: ⎔ Setup node
uses: actions/setup-node@v1
version: 7.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: 📀 Install dependencies
run: npm install
run: pnpm install

- name: 🧹 Lint
run: npm run lint
run: pnpm run lint

- name: 😍 Prettier check
run: npm run check
run: pnpm run check

- name: 🧪 Test
run: npm run coverage
run: pnpm run coverage

- name: ⏫ Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: 👷‍♀️ Build
run: npm run build
run: pnpm run build

- name: ⏫ Upload build artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 2f524bc

Please sign in to comment.