Skip to content

Commit 4ea7237

Browse files
committed
ci: adding non-main workflow
Signed-off-by: Greg Jacobs <[email protected]>
1 parent c3c9a4f commit 4ea7237

File tree

2 files changed

+53
-33
lines changed

2 files changed

+53
-33
lines changed

.github/workflows/push.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test proposed changes
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!main'
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout latest action code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Build
23+
run: |
24+
sed -i "s/0.0.0-development/${{ vars.MAJOR }}.${{ vars.MINOR }}/" package.json
25+
sed -i "s/0.0.0-development/${{ vars.MAJOR }}.${{ vars.MINOR }}/" package-lock.json
26+
#rm -f package-lock.json
27+
npm i -g @vercel/ncc
28+
npm install --omit=dev
29+
npm run build
30+
#npm run build_stats
31+
#npm exec --yes -- webpack-bundle-analyzer dist/stats dist -O -m static
32+
33+
- name: Clean files
34+
run: |
35+
rm .gitignore
36+
rm -f renovate.json
37+
rm -Rf node_modules/
38+
rm -Rf .github
39+
rm index.js
40+
rm -f dist/stats
41+
rm -f dist/index.js.map
42+
rm -f dist/index.873.js.map
43+
rm -f dist/sourcemap-register.js
44+
45+
- name: Test action
46+
uses: ./
47+
with:
48+
name: 'TEST'
49+
value: 'TEST'
50+
token: ${{ secrets.REPO_ACCESS_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,9 @@ jobs:
88
name: Test
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout latest action code
12-
uses: actions/checkout@v4
13-
14-
- name: Setup Node
15-
uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
19-
- name: Build
20-
run: |
21-
sed -i "s/0.0.0-development/${{ vars.MAJOR }}.${{ vars.MINOR }}/" package.json
22-
sed -i "s/0.0.0-development/${{ vars.MAJOR }}.${{ vars.MINOR }}/" package-lock.json
23-
#rm -f package-lock.json
24-
npm i -g @vercel/ncc
25-
npm install --omit=dev
26-
npm run build
27-
#npm run build_stats
28-
#npm exec --yes -- webpack-bundle-analyzer dist/stats dist -O -m static
29-
30-
- name: Clean files
31-
run: |
32-
rm .gitignore
33-
rm -f renovate.json
34-
rm -Rf node_modules/
35-
rm -Rf .github
36-
rm index.js
37-
rm -f dist/stats
38-
rm -f dist/index.js.map
39-
rm -f dist/index.873.js.map
40-
rm -f dist/sourcemap-register.js
41-
42-
- name: Test action
43-
uses: ./
11+
-
12+
name: Test action
13+
uses: action-pack/set-secret@v1
4414
with:
4515
name: 'TEST'
4616
value: 'TEST'

0 commit comments

Comments
 (0)