Skip to content

Commit

Permalink
feat: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
logustra committed Mar 25, 2022
1 parent 7d55c14 commit a2141b8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
with:
version: latest

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.*
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
with:
version: latest

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.*
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Generate code coverage
run: pnpm test

- name: Upload code coverage
uses: codecov/codecov-action@v2

0 comments on commit a2141b8

Please sign in to comment.