Skip to content

Commit f4c6ce5

Browse files
committed
IMPROVE ci
1 parent 461af8e commit f4c6ce5

1 file changed

Lines changed: 34 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,40 @@ jobs:
7272
with:
7373
run: npm run test:firebase
7474

75+
- run: npm run measure:size
76+
- run: npm run aggregate-metrics
77+
78+
- name: lint
79+
run: npm run lint
80+
81+
82+
test-some:
83+
runs-on: ubuntu-22.04
84+
steps:
85+
- uses: actions/checkout@v4
86+
- name: Setup Node.js environment
87+
uses: actions/setup-node@v4.0.0
88+
with:
89+
node-version-file: '.nvmrc'
90+
91+
- name: Reuse npm cache folder
92+
uses: actions/cache@v3
93+
env:
94+
cache-name: cache-node-modules
95+
with:
96+
path: |
97+
~/.npm
98+
./node_modules
99+
# invalidate cache when any package-lock.json changes
100+
key: ${{ runner.os }}-npm-test-x2-${{ hashFiles('**/package.json') }}
101+
restore-keys: |
102+
${{ runner.os }}-npm-test-x2-
103+
104+
- name: install npm dependencies
105+
run: |
106+
rm -f node_modules/__ngcc_entry_points__.json
107+
npm install --legacy-peer-deps --force
108+
75109
- name: test:pouchdb
76110
uses: GabrielBB/xvfb-action@v1
77111
with:
@@ -91,12 +125,3 @@ jobs:
91125
uses: GabrielBB/xvfb-action@v1
92126
with:
93127
run: npm run test:watermelondb
94-
95-
- name: measure build size
96-
run: npm run measure:size
97-
98-
- name: aggregate metrics
99-
run: npm run aggregate-metrics
100-
101-
- name: lint
102-
run: npm run lint

0 commit comments

Comments
 (0)