-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.2 KB
/
main.yml
File metadata and controls
47 lines (35 loc) · 1.2 KB
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
45
46
47
name: build, test and release sqlite-wasm
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
btr:
runs-on: ubuntu-22.04
name: build, test and release sqlite-wasm
steps:
- uses: actions/checkout@v4.2.2
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: update npm # https://docs.npmjs.com/trusted-publishers
run: npm install -g npm@latest
- name: setup playwright for tests
run: npx playwright install --with-deps && npx playwright install msedge && npx playwright install chrome
- name: build sqlite-wasm
run: cd sqlite-wasm && npm run build && npm i
- name: validate sqlite-wasm
run: cd sqlite-wasm && npm run fix && npm run publint && npm run check-types
- name: test sqlite-wasm
run: cd sqlite-wasm && npm run test
- name: e2e sqlite-memory
env:
APIKEY: ${{ secrets.APIKEY }}
run: cd sqlite-wasm && node test/e2e.cjs
- name: publish sqlite-wasm
run: cd sqlite-wasm && npm publish --tag latest --access public --provenance