Skip to content

Commit c57efba

Browse files
committed
Updated node versions in github actions
1 parent 23261a2 commit c57efba

File tree

4 files changed

+18
-22
lines changed

4 files changed

+18
-22
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node: [ '16', '18', '20' ]
17+
node: [ '18', '20' ]
1818
name: Node ${{ matrix.node }}
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Setup node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
2626
- name: Install dependencies
@@ -33,11 +33,11 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
- name: Setup node
38-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3939
with:
40-
node-version: 18
40+
node-version: 20
4141
- name: Install dependencies
4242
run: npm install
4343
- name: Testing
@@ -60,10 +60,13 @@ jobs:
6060
needs: [sonar]
6161
runs-on: ubuntu-latest
6262
steps:
63-
- uses: actions/checkout@v1
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
with:
66+
fetch-depth: 0
6467
- name: Install dependencies
65-
run: yarn
68+
run: npm ci
6669
- name: Publish to Chromatic
67-
uses: chromaui/action@v1
70+
uses: chromaui/action@latest
6871
with:
6972
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
name: Running Publish Build
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: Setup node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version: 20
1919
- name: Install dependencies
2020
run: npm install
2121
- name: Build
2222
run: npm run build
2323
- name: Testing
2424
run: npm test
2525
- name: Publish NPM package
26-
uses: JS-DevTools/npm-publish@v1
26+
uses: JS-DevTools/npm-publish@v3
2727
with:
2828
token: ${{ secrets.NPM_TOKEN }}
2929
access: "public"
3030
dry-run: false
31-
check-version: true
31+
strategy: all

components/jest.config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ module.exports = {
3838

3939
coverageDirectory: '<rootDir>/test/coverage/',
4040

41-
coveragePathIgnorePatterns: [
42-
// '<rootDir>/dist/',
43-
// '<rootDir>/helpers/',
44-
// '<rootDir>/node_modules/',
45-
// '<rootDir>/src/stories/',
46-
],
47-
4841
testEnvironment: 'jsdom',
4942
testEnvironmentOptions: {
5043
url: 'http://localhost/',

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sonar.projectKey=connect-ui-toolkit
22
sonar.organization=cloudbluesonarcube
3-
sonar.javascript.lcov.reportPaths=test/coverage/lcov.info
3+
sonar.javascript.lcov.reportPaths=components/test/coverage/lcov.info
44
sonar.exclusions=**/**/*.spec.js,**/**/*.stories.js

0 commit comments

Comments
 (0)