Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ci/cd pipeline #75

Merged
merged 4 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 30 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,51 +17,66 @@ jobs:
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test-in-browsers
run: npm run test:browser

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install --ignore-scripts
- name: Lint
run: npm run lint

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 6
- 8
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 18
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Upgrade npm
if: ${{ success() && matrix.node-version == '6' }}
run: npm i [email protected] -g
- name: Install Dependencies
run: npm install --ignore-scripts
- name: Test
run: npm test
test-legacy:
run: npm run test:unit

typescript:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 6
- 8
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 18
- name: Install Dependencies
run: npm install --ignore-scripts
- name: Test
run: npm run test-legacy
- name: tsd
run: npm run test:typescript

automerge:
needs:
- lint
- browsers
- test
- test-legacy
- typescript
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"types": "index.d.ts",
"scripts": {
"benchmark": "cd benchmarks && npm install && npm run all",
"test": "standard && tsd && nyc tape test.js",
"test-in-browsers": "airtap test.js",
"test-legacy": "nyc tape test.js"
"lint": "standard",
"test": "nyc tape test.js",
"test:unit": "tape test.js",
"test:typescript": "tsd",
"test:browser": "airtap test.js"
},
"repository": {
"type": "git",
Expand Down