Skip to content

Commit 9184f17

Browse files
WEBDEV-7400 Fix repo CI (#25)
* Update configuration to match WC template * Restore dependencies * Add vscode tasks * Temporarily remove tests that are interfering with CI * Experimentally remove token reference for deploy to main action * Give deploy step write permissions * Restore .d .ts ignore for eslint
1 parent 3c21ddb commit 9184f17

15 files changed

Lines changed: 937 additions & 164 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
16+
with:
17+
node-version: latest
1618

1719
- name: Install dependencies
1820
run: npm install

.github/workflows/gh-pages-main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ jobs:
1919
with:
2020
persist-credentials: false
2121
- uses: actions/setup-node@v4
22+
with:
23+
node-version: latest
24+
2225

2326
- name: Install dependencies
2427
run: npm install
25-
28+
2629
- name: Create build files for gh-pages deploy
2730
run: npm run ghpages:build
2831

@@ -35,4 +38,3 @@ jobs:
3538
clean-exclude: pr/
3639
force: false
3740
target-folder: main
38-
token: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Editor directories and files
22
.vscode/*
33
!.vscode/extensions.json
4+
!.vscode/tasks.json
45
.idea
56
.DS_Store
67
*.suo
@@ -13,9 +14,6 @@
1314
/node_modules/
1415
/npm-debug.log
1516

16-
## testing
17-
/coverage/
18-
1917
## temp folders
2018
/.tmp/
2119

@@ -35,5 +33,4 @@ storybook-static
3533
logs
3634
*.log
3735
npm-debug.log*
38-
yarn-debug.log*
39-
yarn-error.log*
36+
npm-error.log*

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

.vscode/tasks.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Watch coverage on open",
6+
"command": "${command:coverage-gutters.watchCoverageAndVisibleEditors}",
7+
"runOptions": {
8+
"runOn": "folderOpen"
9+
}
10+
}
11+
]
12+
}

coverage/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.placeholder
3+
!.gitignore

coverage/.placeholder

Whitespace-only changes.

0 commit comments

Comments
 (0)