File tree Expand file tree Collapse file tree 4 files changed +15248
-47
lines changed Expand file tree Collapse file tree 4 files changed +15248
-47
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Test Akamai
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+ workflow_dispatch :
9
+ workflow_call :
10
+
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}-akamai
13
+ cancel-in-progress : true
14
+
15
+ jobs :
16
+ build-core :
17
+ uses : ./.github/workflows/build_core.yml
18
+
19
+ akamai :
20
+ runs-on : ubuntu-latest
21
+ timeout-minutes : 15
22
+ needs : build-core
23
+ defaults :
24
+ run :
25
+ working-directory : ./bindings/akamai
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - name : Use Node.js 22.x
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : 22.x
32
+ cache : ' npm'
33
+ - uses : actions/download-artifact@v4
34
+ with :
35
+ name : core-library-artifacts
36
+ path : dist
37
+ - run : echo "Current directory - $(pwd)"
38
+ - run : npm ci
39
+ - run : npm run build
40
+ # TODO: fix tests
41
+ # - run: npm test
42
+ - uses : actions/upload-artifact@v4
43
+ with :
44
+ name : akamai-artifacts
45
+ path : bindings/akamai/dist/*
Original file line number Diff line number Diff line change
1
+ name : Integration Test Akamai
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}-integrate-akamai
8
+ cancel-in-progress : true
9
+
10
+ jobs :
11
+ build :
12
+ uses : ./.github/workflows/build_akamai.yml
13
+
14
+ deploy :
15
+ runs-on : ubuntu-latest
16
+ needs : [build]
17
+ defaults :
18
+ run :
19
+ working-directory : ./bindings/akamai
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - name : Use Node.js 22.x
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : 22.x
26
+ cache : ' npm'
27
+ - run : npm ci
28
+ - uses : actions/download-artifact@v4
29
+ with :
30
+ name : akamai-artifacts
31
+ path : bindings/akamai/dist
32
+ - run : npm run pack
33
+ - run : wget https://github.com/akamai/cli/releases/download/v1.6.0/akamai-v1.6.0-linuxamd64
34
+ - run : chmod +x akamai-v1.6.0-linuxamd64
35
+ - run : mv akamai-v1.6.0-linuxamd64 /usr/local/bin/akamai
36
+ - run : akamai --version
37
+ # TODO: deploy
38
+
39
+ # - name: Run Integration Tests
40
+ # run: ./integration_test.sh
You can’t perform that action at this time.
0 commit comments