This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
86 lines (82 loc) · 2.19 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
examples:
runs-on: ubuntu-latest
name: Test ${{ matrix.project }}
strategy:
fail-fast: false
matrix:
project:
- browser-add-readable-stream
- browser-angular
- browser-create-react-app
- browser-esbuild
- browser-exchange-files
- browser-ipns-publish
- browser-lit
- browser-mfs
- browser-nextjs
- browser-readablestream
- browser-script-tag
- browser-service-worker
- browser-sharing-node-across-tabs
- browser-video-streaming
- browser-vite
- browser-vue
- browser-webpack
- circuit-relaying
- custom-ipfs-repo
- custom-ipld-formats
- custom-libp2p
- http-client-browser-pubsub
- http-client-bundle-webpack
- http-client-name-api
- http-client-upload-file
- ipfs-101
#- ipfs-client-add-files
- run-in-electron
- running-multiple-nodes
- traverse-ipld-graphs
- types-use-ipfs-from-ts
- types-use-ipfs-from-typed-js
defaults:
run:
working-directory: examples/${{ matrix.project }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm install
- name: Install Playwright
run: npx -y playwright install --with-deps
- name: Run tests
run: npm run test
env:
CI: true
monorepo:
runs-on: ubuntu-latest
name: Test monorepo
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm install
- name: Install Playwright
run: npx -y playwright install --with-deps
- name: Run test:examples
run: npm run test:examples
env:
CI: true