-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (33 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NEXT_PUBLIC_EXPLORER_API_URL: http://localhost:4350/graphql
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 22.6.0
cache: "yarn"
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Code format check
run: yarn format:check
- name: Linting
run: yarn lint
- name: Run Tests
run: yarn test:ci
- name: Merge coveralls reports
run: yarn coveralls
- name: Publish coveralls report
uses: coverallsapp/github-action@master
with:
path-to-lcov: "coverage/lcov.info"
github-token: ${{ secrets.GITHUB_TOKEN }}