Skip to content

Commit c856d69

Browse files
author
Pelle Wessman
committed
Use Socket workflows
1 parent 93b0673 commit c856d69

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ name: Linting
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- main
11+
- master
1212

1313
permissions:
1414
contents: read
1515

16-
# FIXME Replace with socketr.dev one
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1720
jobs:
18-
lint:
19-
# FIXME Replace with socket.dev one
20-
uses: voxpelli/ghatemplates/.github/workflows/lint.yml@main
21+
linting:
22+
name: "Linting"
23+
uses: SocketDev/workflows/.github/workflows/reusable-base.yml@master
24+
with:
25+
no-lockfile: true
26+
npm-test-script: 'check'

.github/workflows/nodejs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@ name: Node CI
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- main
11+
- master
1212

1313
permissions:
1414
contents: read
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test:
18-
# FIXME Replace with socket.dev one
19-
uses: voxpelli/ghatemplates/.github/workflows/test.yml@main
22+
name: "Tests"
23+
uses: SocketDev/workflows/.github/workflows/reusable-base.yml@master
2024
with:
25+
no-lockfile: true
26+
npm-test-script: 'test-ci'
2127
node-versions: '14,16,18,19'
2228
os: 'ubuntu-latest,windows-latest'

0 commit comments

Comments
 (0)