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 abe9e9f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 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/action-setup@v2.0.1
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@tailwindcss/typography": "^0.5.0",
"dayjs": "^1.10.7",
"lodash-es": "^4.17.21",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.3.1",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit abe9e9f

@vercel
Copy link

@vercel vercel bot commented on abe9e9f May 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.