-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
c4e92d4
commit 8dbd9b6
Showing
5 changed files
with
58 additions
and
25 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 |
---|---|---|
@@ -1,46 +1,84 @@ | ||
name: Test | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
merge_group: {} | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
timeout-minutes: 10 | ||
- name: Set node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.18.2 | ||
cache: pnpm | ||
|
||
- name: Setup | ||
run: npm i -g @antfu/ni | ||
|
||
- name: Install | ||
run: nci | ||
|
||
- name: Lint | ||
run: nr lint | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
node_version: [14.x, 16.x] | ||
os: [ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest] | ||
node_version: [18.18.2, lts/*] | ||
include: | ||
- os: macos-latest | ||
node_version: lts/* | ||
- os: windows-latest | ||
node_version: lts/* | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node version to ${{ matrix.node_version }} | ||
uses: actions/setup-node@v2 | ||
- name: Set node ${{ matrix.node_version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
cache: pnpm | ||
|
||
- run: corepack enable | ||
|
||
- name: Setup | ||
run: npm i -g @antfu/ni | ||
|
||
- name: Install | ||
run: pnpm i | ||
run: nci | ||
|
||
- name: Build | ||
run: pnpm run build | ||
run: nr build | ||
|
||
- name: Test | ||
run: pnpm run test | ||
run: nr test | ||
|
||
- name: Lint | ||
run: pnpm run lint | ||
- name: Typecheck | ||
run: nr typecheck |
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,9 +1,8 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import { DotTextCanvas } from '../../src/canvas' | ||
|
||
describe('dotTextCanvas test', () => { | ||
it.skip('test', () => { | ||
DotTextCanvas('hi', 10, 'red', 10) | ||
// DotTextCanvas('hi', 10, 'red', 10) | ||
expect(true).toBe(true) | ||
}) | ||
}) |
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
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
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,7 +1,3 @@ | ||
import { defineConfig } from 'vite' | ||
|
||
export default defineConfig({ | ||
test: { | ||
environment: 'happy-dom', | ||
}, | ||
}) | ||
export default defineConfig({}) |