File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : JS OpenFeature Provider CI
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ["WASM CI"]
6
+ types :
7
+ - completed
8
+ branches : [ main ]
9
+ pull_request :
10
+ paths :
11
+ - ' openfeature-provider/js/**'
12
+ - ' .github/workflows/ci-js-openfeature-provider.yml'
13
+
14
+ jobs :
15
+ wasm-build :
16
+ uses : ./.github/workflows/ci-wasm.yml
17
+ if : ${{ github.event_name == 'pull_request' }}
18
+
19
+ js-openfeature-provider :
20
+ runs-on : ubuntu-latest
21
+ needs : wasm-build
22
+ if : ${{ always() && (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || (github.event_name == 'pull_request' && needs.wasm-build.result == 'success') }}
23
+ defaults :
24
+ run :
25
+ working-directory : openfeature-provider/js
26
+
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Download WASM artifacts (from workflow run)
32
+ if : ${{ github.event_name == 'workflow_run' }}
33
+ uses : actions/download-artifact@v4
34
+ with :
35
+ name : wasm-artifacts
36
+ path : wasm/
37
+ github-token : ${{ secrets.GITHUB_TOKEN }}
38
+ run-id : ${{ github.event.workflow_run.id }}
39
+
40
+ - name : Download WASM artifacts (from PR build)
41
+ if : ${{ github.event_name == 'pull_request' }}
42
+ uses : actions/download-artifact@v4
43
+ with :
44
+ name : wasm-artifacts
45
+ path : wasm/
46
+
47
+ - name : Setup protoc
48
+ uses : arduino/setup-protoc@v3
49
+
50
+ - name : Setup Node.js
51
+ uses : actions/setup-node@v4
52
+ with :
53
+ node-version : ' 22'
54
+
55
+ - name : Enable Corepack
56
+ run : corepack enable
57
+
58
+ - name : Install dependencies
59
+ run : yarn install --immutable
60
+
61
+ - name : Generate protobuf types
62
+ run : yarn proto:gen
63
+
64
+ - name : Build
65
+ run : yarn build
66
+
67
+ - name : Test
68
+ run : yarn test
Original file line number Diff line number Diff line change 55
55
56
56
- name : clippy
57
57
run : make lint
58
+
59
+ - name : Upload WASM artifacts
60
+ uses : actions/upload-artifact@v4
61
+ with :
62
+ name : wasm-artifacts
63
+ path : wasm/confidence_resolver.wasm
You can’t perform that action at this time.
0 commit comments