-
-
Notifications
You must be signed in to change notification settings - Fork 56
44 lines (40 loc) · 1.18 KB
/
ci-cd.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
41
42
43
44
name: CI-CD Manifest
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "18.x"
- name: Install root dependencies
run: npm install
- name: Install dependencies (workspaces)
run: npm ci --workspaces --ignore-scripts
- name: Build App
run: npm run build
- name: Bundle analysis
run: npx @codecov/bundle-analyzer ./dist --bundle-name=manifest --upload-token=${{ secrets.CODECOV_TOKEN }}
working-directory: ./packages/core/manifest
- name: Run tests
run: npm run test:ci
- name: Upload coverage reports to Codecov (Manifest package)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: mnfst/manifest
directory: ./packages/core/manifest/coverage
- name: Changeset
run: npx changeset status --since=master