Skip to content

Commit

Permalink
Fix GitHub Release action
Browse files Browse the repository at this point in the history
  • Loading branch information
schlusslicht committed Nov 13, 2022
1 parent be036c0 commit 6fce53d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ jobs:
unittests:
name: Unittests
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 12.x
- 14.x
- 16.x
steps:
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
node-version: 16.x

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ./source

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
versions: ${{steps.select-versions.outputs.versions}}
steps:
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ./source

Expand Down Expand Up @@ -55,7 +57,7 @@ jobs:
tag_name: ${{github.ref}}

- name: Cache release
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: ${{github.sha}}
path: ./source/dist
Expand Down Expand Up @@ -88,12 +90,12 @@ jobs:
version: ${{fromJson(needs.prepare.outputs.versions)}}
steps:
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org

- name: Restore cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: ${{github.sha}}
path: ./source/dist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sgrud-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v3

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ./source

- name: Checkout target
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ./target
repository: sgrud/sgrud.github.io
Expand Down
2 changes: 1 addition & 1 deletion unittests/bus/worker/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('@sgrud/bus/worker', () => {
}))
.use('/', (_, r) => r.send(html))
.listen(location.port);
});
}, 30000);

describe('requiring the module as worker thread', () => {
const worker = new Worker(require.resolve('@sgrud/bus/worker'));
Expand Down

0 comments on commit 6fce53d

Please sign in to comment.