Skip to content

Commit a7445aa

Browse files
DO NOT SUBMIT testing
1 parent 2b9720a commit a7445aa

File tree

2 files changed

+110
-103
lines changed

2 files changed

+110
-103
lines changed

.github/workflows/build.yaml

Lines changed: 108 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -20,109 +20,114 @@ jobs:
2020
working-directory: ./lib
2121
timeout-minutes: 5
2222
steps:
23-
- uses: actions/checkout@v3
24-
with:
25-
fetch-depth: ${{ !fromJSON(env.do_sonarscan) && 1 || 0 }}
26-
- uses: actions/setup-node@v3
27-
with:
28-
node-version: '18'
29-
cache: 'npm'
30-
cache-dependency-path: './lib/package-lock.json'
31-
- run: npm ci
32-
- run: npm test
33-
- uses: fingerprintjs/action-coverage-report-md@v1
34-
id: coverage-md
35-
with:
36-
srcBasePath: './'
37-
textReportPath: './lib/coverage/coverage.txt'
38-
- run: echo "${MARKDOWN_REPORT}" >> $GITHUB_STEP_SUMMARY
23+
- name: Dump job context
3924
env:
40-
MARKDOWN_REPORT: "${{ steps.coverage-md.outputs.markdownReport }}"
41-
- run: npm audit --omit dev && npm audit --audit-level high
42-
- run: npm run license-check
43-
- run: npm run lint
44-
- run: npm pack
45-
- uses: actions/upload-artifact@v3
46-
with:
47-
name: opentdf-client-lib
48-
path: ./lib/opentdf-client-*.tgz
49-
- name: SonarCloud Scan
50-
if: fromJSON(env.do_sonarscan)
51-
uses: SonarSource/sonarcloud-github-action@master
52-
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
25+
JOB_CONTEXT: ${{ toJson(job) }}
26+
run: echo "$JOB_CONTEXT"
27+
- run: tilt ci
28+
# - uses: actions/checkout@v3
29+
# with:
30+
# fetch-depth: ${{ !fromJSON(env.do_sonarscan) && 1 || 0 }}
31+
# - uses: actions/setup-node@v3
32+
# with:
33+
# node-version: '18'
34+
# cache: 'npm'
35+
# cache-dependency-path: './lib/package-lock.json'
36+
# - run: npm ci
37+
# - run: npm test
38+
# - uses: fingerprintjs/action-coverage-report-md@v1
39+
# id: coverage-md
40+
# with:
41+
# srcBasePath: './'
42+
# textReportPath: './lib/coverage/coverage.txt'
43+
# - run: echo "${MARKDOWN_REPORT}" >> $GITHUB_STEP_SUMMARY
44+
# env:
45+
# MARKDOWN_REPORT: "${{ steps.coverage-md.outputs.markdownReport }}"
46+
# - run: npm audit --omit dev && npm audit --audit-level high
47+
# - run: npm run license-check
48+
# - run: npm run lint
49+
# - run: npm pack
50+
# - uses: actions/upload-artifact@v3
51+
# with:
52+
# name: opentdf-client-lib
53+
# path: ./lib/opentdf-client-*.tgz
54+
# - name: SonarCloud Scan
55+
# if: fromJSON(env.do_sonarscan)
56+
# uses: SonarSource/sonarcloud-github-action@master
57+
# env:
58+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5560

56-
web-app:
57-
needs:
58-
- lib
59-
runs-on: ubuntu-latest
60-
defaults:
61-
run:
62-
working-directory: ./web-app
63-
timeout-minutes: 5
64-
steps:
65-
- uses: actions/checkout@v3
66-
- uses: actions/setup-node@v3
67-
with:
68-
node-version: '18'
69-
cache: 'npm'
70-
cache-dependency-path: './web-app/package-lock.json'
71-
- uses: actions/download-artifact@v3
72-
with:
73-
name: opentdf-client-lib
74-
path: lib/
75-
- run: npm uninstall @opentdf/client && npm ci && npm i ../lib/opentdf-client-*.tgz
76-
- run: npm install
77-
- run: npm test
78-
- run: npm audit --omit dev && npm audit --audit-level high
79-
- run: npm run license-check
80-
- run: npm run lint
81-
- run: npm pack
61+
# web-app:
62+
# needs:
63+
# - lib
64+
# runs-on: ubuntu-latest
65+
# defaults:
66+
# run:
67+
# working-directory: ./web-app
68+
# timeout-minutes: 5
69+
# steps:
70+
# - uses: actions/checkout@v3
71+
# - uses: actions/setup-node@v3
72+
# with:
73+
# node-version: '18'
74+
# cache: 'npm'
75+
# cache-dependency-path: './web-app/package-lock.json'
76+
# - uses: actions/download-artifact@v3
77+
# with:
78+
# name: opentdf-client-lib
79+
# path: lib/
80+
# - run: npm uninstall @opentdf/client && npm ci && npm i ../lib/opentdf-client-*.tgz
81+
# - run: npm install
82+
# - run: npm test
83+
# - run: npm audit --omit dev && npm audit --audit-level high
84+
# - run: npm run license-check
85+
# - run: npm run lint
86+
# - run: npm pack
8287

83-
backend-roundtrip:
84-
needs:
85-
- web-app
86-
runs-on: ubuntu-latest
87-
defaults:
88-
run:
89-
working-directory: .github/workflows/roundtrip
90-
timeout-minutes: 45
91-
steps:
92-
- uses: actions/checkout@v3
93-
- uses: actions/setup-node@v3
94-
with:
95-
node-version: '18'
96-
cache: 'npm'
97-
cache-dependency-path: './web-app/package-lock.json'
98-
- uses: actions/download-artifact@v3
99-
with:
100-
name: opentdf-client-lib
101-
path: lib/
102-
- uses: yokawasa/[email protected]
103-
with:
104-
setup-tools: |
105-
kubectl
106-
helm
107-
tilt
108-
# This should be in sync with the minikube-deployed kube version below
109-
kubectl: '1.30.0'
110-
helm: '3.14.4'
111-
tilt: '0.33.13'
112-
- run: |
113-
kubectl version --client
114-
kustomize version
115-
tilt version
116-
- name: start minikube
117-
id: minikube
118-
uses: medyagh/setup-minikube@master
119-
with:
120-
minikube-version: 1.33.0
121-
# This should be in sync with the setup-tools version above
122-
kubernetes-version: 1.30.0
123-
- name: Run tilt ci
124-
env:
125-
TEST_SCRIPT: ../../wait-and-test.sh
126-
OPENTDF_INGRESS_HOST_PORT: "5432"
127-
PLAYWRIGHT_TESTS_TO_RUN: roundtrip
128-
run: tilt ci
88+
# backend-roundtrip:
89+
# needs:
90+
# - web-app
91+
# runs-on: ubuntu-latest
92+
# defaults:
93+
# run:
94+
# working-directory: .github/workflows/roundtrip
95+
# timeout-minutes: 45
96+
# steps:
97+
# - uses: actions/checkout@v3
98+
# - uses: actions/setup-node@v3
99+
# with:
100+
# node-version: '18'
101+
# cache: 'npm'
102+
# cache-dependency-path: './web-app/package-lock.json'
103+
# - uses: actions/download-artifact@v3
104+
# with:
105+
# name: opentdf-client-lib
106+
# path: lib/
107+
# - uses: yokawasa/[email protected]
108+
# with:
109+
# setup-tools: |
110+
# kubectl
111+
# helm
112+
# tilt
113+
# # This should be in sync with the minikube-deployed kube version below
114+
# kubectl: '1.30.0'
115+
# helm: '3.14.4'
116+
# tilt: '0.33.13'
117+
# - run: |
118+
# kubectl version --client
119+
# kustomize version
120+
# tilt version
121+
# - name: start minikube
122+
# id: minikube
123+
# uses: medyagh/setup-minikube@master
124+
# with:
125+
# minikube-version: 1.33.0
126+
# # This should be in sync with the setup-tools version above
127+
# kubernetes-version: 1.30.0
128+
# - name: Run tilt ci
129+
# env:
130+
# TEST_SCRIPT: ${{ }}/wait-and-test.sh
131+
# OPENTDF_INGRESS_HOST_PORT: "5432"
132+
# PLAYWRIGHT_TESTS_TO_RUN: roundtrip
133+
# run: tilt ci

lib/Tiltfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local("pwd")
2+
local("ls")

0 commit comments

Comments
 (0)