Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit d1129dd

Browse files
committed
ci: add ci.yml
1 parent b0509c7 commit d1129dd

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
env:
5+
CI: true
6+
VERSION: ${{ github.event.pull_request.number }}
7+
8+
jobs:
9+
publish:
10+
name: Install and publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 14.x
20+
21+
- name: Restore yarn cache
22+
id: yarn-cache
23+
uses: actions/cache@v2
24+
with:
25+
path: "**/node_modules"
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
28+
- name: Install dependencies
29+
if: steps.yarn-cache.outputs.cache-hit != 'true'
30+
run: |
31+
yarn install --cwd example --frozen-lockfile
32+
yarn install --frozen-lockfile
33+
34+
- name: Check eslint
35+
run: yarn lint
36+
37+
- name: Check test
38+
run: yarn test

0 commit comments

Comments
 (0)