-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Bug Report | ||
about: New issues are for bug reports only. For everything else, use Discussions. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
### Expected behavior | ||
|
||
|
||
### Actual behavior | ||
|
||
|
||
### Steps to reproduce | ||
|
||
|
||
### Environment | ||
|
||
* Version of sub-events: | ||
* OS type (Linux/Windows/Mac): | ||
* Version of Node.js: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,26 @@ | ||
name: ci | ||
|
||
on: | ||
- push | ||
- pull_request | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
pre_job: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- name: Skip Duplicate Actions | ||
id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5.2.0 | ||
with: | ||
concurrent_skipping: 'same_content' | ||
paths_ignore: '[".vscode/", "**/docs/**", "**/*.md"]' | ||
do_not_skip: '["pull_request"]' | ||
|
||
lint: | ||
name: Linting Checks | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup NodeJs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Run Linting Checks | ||
run: yarn lint | ||
|
||
test: | ||
name: 'Test: Node v${{ matrix.node_version }}' | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
os: | ||
- 'ubuntu-latest' | ||
node_version: | ||
- '18' | ||
- '20' | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
REPORT_COVERAGE: ${{ fromJSON('["false", "true"]')[matrix.node_version == '18' && matrix.os == 'ubuntu-latest'] }} | ||
EXCLUDE_RACE_TESTS: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# Fetch all commits for codecov. | ||
fetch-depth: ${{ fromJSON('[0, 1]')[ env.REPORT_COVERAGE == 'true'] }} | ||
|
||
- name: Setup NodeJs for building | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 'lts/*' | ||
node-version: [14.x, 20.x] | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Setup NodeJs ${{ matrix.node_version }} for testing | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Run Tests | ||
run: yarn test | ||
|
||
- name: Report coverage | ||
uses: codecov/codecov-action@v3 | ||
if: (success() || failure()) && env.REPORT_COVERAGE == 'true' | ||
with: | ||
files: coverage/lcov.info | ||
- run: npm install | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters