Skip to content

Commit ef2b71d

Browse files
committed
Describe a way of debugging this action
1 parent 4b9348d commit ef2b71d

File tree

5 files changed

+223
-196
lines changed

5 files changed

+223
-196
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
1-
name: 'build-test'
2-
on: # rebuild any PRs and main branch changes
3-
pull_request:
4-
push:
5-
branches:
6-
- main
7-
- 'releases/*'
8-
9-
jobs:
10-
build: # make sure build/ci work properly
11-
runs-on: ubuntu-latest
12-
steps:
1+
name: 'build-test'
2+
on: # rebuild any PRs and main branch changes
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/*'
8+
9+
jobs:
10+
build: # make sure build/ci work properly
11+
runs-on: ubuntu-latest
12+
steps:
1313
- uses: actions/checkout@v3
14-
- run: |
15-
npm ci
16-
- run: |
17-
npm run all
18-
- name: Verify no unstaged changes
19-
run: __test__/verify-no-unstaged-changes.sh
14+
- run: |
15+
npm ci
16+
- run: |
17+
npm run all
18+
- name: Verify no unstaged changes
19+
run: __test__/verify-no-unstaged-changes.sh
2020

21-
test: # make sure the action works on a clean machine without building
22-
runs-on: ubuntu-latest
23-
steps:
21+
test: # make sure the action works on a clean machine without building
22+
runs-on: ubuntu-latest
23+
steps:
2424
- uses: actions/checkout@v3
25-
- uses: ./
25+
- uses: ./
2626

27+
dump-event:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: github-context
33+
path: ${{github.event_path}}
2734

28-
pr-build-test:
29-
runs-on: ubuntu-latest
30-
if: ${{ github.event_name == 'pull_request' }}
31-
steps:
35+
pr-build-test:
36+
runs-on: ubuntu-latest
37+
if: ${{ github.event_name == 'pull_request' }}
38+
steps:
3239
- uses: actions/checkout@v3
3340
- uses: actions/setup-node@v3
34-
with:
41+
with:
3542
node-version: '16'
36-
- run: |
37-
npm ci
38-
- run: |
39-
npm run build
40-
- uses: ./
43+
- run: |
44+
npm ci
45+
- run: |
46+
npm run build
47+
- uses: ./

.gitignore

Lines changed: 99 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,100 @@
1-
# Dependency directory
2-
node_modules
3-
4-
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
5-
# Logs
6-
logs
7-
*.log
8-
npm-debug.log*
9-
yarn-debug.log*
10-
yarn-error.log*
11-
lerna-debug.log*
12-
13-
# Diagnostic reports (https://nodejs.org/api/report.html)
14-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15-
16-
# Runtime data
17-
pids
18-
*.pid
19-
*.seed
20-
*.pid.lock
21-
22-
# Directory for instrumented libs generated by jscoverage/JSCover
23-
lib-cov
24-
25-
# Coverage directory used by tools like istanbul
26-
coverage
27-
*.lcov
28-
29-
# nyc test coverage
30-
.nyc_output
31-
32-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33-
.grunt
34-
35-
# Bower dependency directory (https://bower.io/)
36-
bower_components
37-
38-
# node-waf configuration
39-
.lock-wscript
40-
41-
# Compiled binary addons (https://nodejs.org/api/addons.html)
42-
build/Release
43-
44-
# Dependency directories
45-
jspm_packages/
46-
47-
# TypeScript v1 declaration files
48-
typings/
49-
50-
# TypeScript cache
51-
*.tsbuildinfo
52-
53-
# Optional npm cache directory
54-
.npm
55-
56-
# Optional eslint cache
57-
.eslintcache
58-
59-
# Optional REPL history
60-
.node_repl_history
61-
62-
# Output of 'npm pack'
63-
*.tgz
64-
65-
# Yarn Integrity file
66-
.yarn-integrity
67-
68-
# dotenv environment variables file
69-
.env
70-
.env.test
71-
72-
# parcel-bundler cache (https://parceljs.org/)
73-
.cache
74-
75-
# next.js build output
76-
.next
77-
78-
# nuxt.js build output
79-
.nuxt
80-
81-
# vuepress build output
82-
.vuepress/dist
83-
84-
# Serverless directories
85-
.serverless/
86-
87-
# FuseBox cache
88-
.fusebox/
89-
90-
# DynamoDB Local files
91-
.dynamodb/
92-
93-
# OS metadata
94-
.DS_Store
95-
Thumbs.db
96-
97-
# Ignore built ts files
98-
__tests__/runner/*
1+
# Dependency directory
2+
node_modules
3+
4+
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
jspm_packages/
46+
47+
# TypeScript v1 declaration files
48+
typings/
49+
50+
# TypeScript cache
51+
*.tsbuildinfo
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# dotenv environment variables file
69+
.env
70+
.env.test
71+
event.json
72+
73+
# parcel-bundler cache (https://parceljs.org/)
74+
.cache
75+
76+
# next.js build output
77+
.next
78+
79+
# nuxt.js build output
80+
.nuxt
81+
82+
# vuepress build output
83+
.vuepress/dist
84+
85+
# Serverless directories
86+
.serverless/
87+
88+
# FuseBox cache
89+
.fusebox/
90+
91+
# DynamoDB Local files
92+
.dynamodb/
93+
94+
# OS metadata
95+
.DS_Store
96+
Thumbs.db
97+
98+
# Ignore built ts files
99+
__tests__/runner/*
99100
lib/**/*

0 commit comments

Comments
 (0)