Skip to content

Commit 7a3e713

Browse files
committed
fix: rename test and correct workflow config
1 parent ec9af1e commit 7a3e713

File tree

12 files changed

+43
-259
lines changed

12 files changed

+43
-259
lines changed

.github/workflows/check-dist.yml

-53
This file was deleted.

.github/workflows/codeql-analysis.yml

-71
This file was deleted.

.github/workflows/test.yml

+20-21
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
name: 'build-test'
1+
name: "build-test"
22
on: # rebuild any PRs and main branch changes
3-
pull_request:
4-
push:
5-
branches:
6-
- main
7-
- 'releases/*'
3+
pull_request:
4+
branches:
5+
- main
86

97
jobs:
10-
build: # make sure build/ci work properly
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
- run: |
15-
npm install
16-
- run: |
17-
npm run all
18-
test: # make sure the action works on a clean machine without building
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v3
22-
- uses: ./
23-
with:
24-
milliseconds: 1000
8+
build: # make sure build/ci work properly
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- run: |
13+
npm install
14+
- run: |
15+
npm run all
16+
# make sure the action works on a clean machine without building
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: ./
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

dist/commit.hbs

-56
This file was deleted.

dist/footer.hbs

-10
This file was deleted.

dist/header.hbs

-9
This file was deleted.

dist/index.js

+4-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/template.hbs

-11
This file was deleted.

src/main.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ import { getNextVersion, getReleaseTypeFromCommitMessage } from './version'
77
async function run(): Promise<void> {
88
try {
99
const lastVersion = await getLastGitTag()
10-
if (lastVersion === null) {
11-
core.setFailed('Could not get last git tag')
12-
return
13-
}
10+
if (lastVersion === null)
11+
return core.setFailed('Could not get last git tag')
1412

1513
const lastCommitMessage = await getLastCommitMessage()
16-
if (lastCommitMessage === null) {
17-
core.setFailed('Could not get last commit message')
18-
return
19-
}
14+
if (lastCommitMessage === null)
15+
return core.setFailed('Could not get last commit message')
2016

2117
const releaseType = getReleaseTypeFromCommitMessage(lastCommitMessage)
2218
if (releaseType !== null) {

tsconfig.json

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
4-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5-
"outDir": "./lib", /* Redirect output structure to the directory. */
6-
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
7-
"strict": true, /* Enable all strict type-checking options. */
8-
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
9-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
10-
},
11-
"exclude": ["node_modules", "**/*.test.ts"]
12-
}
2+
"compilerOptions": {
3+
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
4+
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5+
"outDir": "./lib", /* Redirect output structure to the directory. */
6+
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
7+
"strict": true, /* Enable all strict type-checking options. */
8+
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
9+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
10+
},
11+
"exclude": [
12+
"node_modules",
13+
"**/*.test.ts"
14+
]
15+
}

0 commit comments

Comments
 (0)