Skip to content

Commit 235170f

Browse files
authored
Merge branch 'google:main' into main
2 parents 2705246 + 906786a commit 235170f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+14202
-2191
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: antonmedv

.github/pages/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Here be dragons

.github/workflows/check.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- run: npm i
11+
- run: npm run build:check
12+
13+
coverage:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- run: npm i
18+
- run: npm run coverage
19+
timeout-minutes: 1
20+
env:
21+
FORCE_COLOR: 3
22+
23+
code-style:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- run: npm i
28+
- run: npm run fmt:check
29+
30+
types:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
- run: npm i
35+
- run: npm run build
36+
- run: npm run test:types
37+
38+
circular:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- run: npm i
43+
- run: npm run circular

.github/workflows/dev-publish.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Dev Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
- run: npm i
17+
- run: npm test
18+
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
19+
env:
20+
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
21+
- run: |
22+
npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
23+
npm publish --no-git-tag-version --tag dev

.github/workflows/docs.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches: ['gh-pages']
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
with:
27+
ref: gh-pages
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v3
30+
- name: Install deps
31+
run: npm ci
32+
- name: Built docs
33+
run: npm run docs:built
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v2
36+
with:
37+
path: 'docs'
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v2

.github/workflows/npm-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
- run: npm test
1717
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
1818
env:
19-
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
19+
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
2020
- run: npm publish

.github/workflows/test.yml

+27-12
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,36 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
87
runs-on: ubuntu-latest
98

109
strategy:
1110
matrix:
12-
node-version: [16.x, 17.x]
11+
node-version: [16.x, 18.x, 20.x]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm i
20+
- run: npm test
21+
timeout-minutes: 1
22+
env:
23+
FORCE_COLOR: 3
24+
25+
win32:
26+
runs-on: windows-latest
1327

1428
steps:
15-
- uses: actions/checkout@v3
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: npm i
21-
- run: npm test
22-
timeout-minutes: 1
23-
env:
24-
FORCE_COLOR: 3
29+
- uses: actions/checkout@v3
30+
- name: Use Node.js 16.x
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: 16.x
34+
- run: npm i
35+
- run: npm run build
36+
- run: node ./test/win32.test.js
37+
timeout-minutes: 1
38+
env:
39+
FORCE_COLOR: 3

.gitignore

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
/node_modules/
2-
package-lock.json
1+
node_modules/
2+
build/
3+
coverage/
4+
package/
5+
reports/
6+
.stryker-tmp/
37
yarn.lock
4-
coverage
8+
test/fixtures/ts-project/package-lock.json

.nycrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"reporter": ["html", "text"],
3+
"lines": 98,
4+
"branches": "90",
5+
"statements": "98"
6+
}

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules/
2+
build/
3+
coverage/
4+
package/
5+
reports/
6+
.stryker-tmp/
7+
package-lock.json
8+
yarn.lock
9+
*.md

0 commit comments

Comments
 (0)