Skip to content

Commit

Permalink
test: enable test on 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 22, 2023
1 parent 7511e2e commit f216981
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 87 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

13 changes: 4 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,15 @@ name: CI

on:
push:
branches: [ master ]
branches: [ master, 1.x ]

pull_request:
branches: [ master ]

schedule:
- cron: '0 2 * * *'

workflow_dispatch: {}
branches: [ master, 1.x ]

jobs:
Job:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest'
version: '14, 16, 18'
version: '14, 16, 18, 20'
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Release

on:
# 合并后自动发布
push:
branches: [ master ]

# 手动发布
workflow_dispatch: {}
branches: [ master, 1.x ]

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions test/ts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ describe('test/ts.test.js', () => {
it('should works with ts without error', done => {
const cwd = path.resolve(__dirname, './fixtures/ts');
const tsconfigPath = path.resolve(cwd, 'tsconfig.json');
const testFile = path.resolve(cwd, 'test');
runscript(`tsc -p ${tsconfigPath} && node ${testFile}`, { stdio: 'inherit' })
runscript(`tsc -p ${tsconfigPath}`, { stdio: 'inherit' })
.then(() => done())
.catch(done);
});
Expand Down

0 comments on commit f216981

Please sign in to comment.