Skip to content

Commit

Permalink
ci: several updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Jun 22, 2022
1 parent d31f661 commit 396e6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 69 deletions.
69 changes: 1 addition & 68 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,6 @@ jobs:
- name: Lint
run: pnpm run lint

typecheck:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: pnpm install

- name: Typecheck
run: pnpm run typecheck

test:
runs-on: ${{ matrix.os }}

Expand All @@ -90,45 +64,4 @@ jobs:
run: pnpm install

- name: Unit Test
run: pnpm run test:unit

test-e2e:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x, 18.x]
os: [ubuntu-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: |
~/.cache
key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: Enable Corepack
run: corepack enable

- name: Install Dependencies
run: pnpm install

# TODO: is this still needed?
- name: Cypress PNPM Patch
run: cp pnpm-lock.yaml package-lock.json

- name: Cypress
uses: cypress-io/github-action@v2
with:
install-command: echo
build: pnpm run build
start: npx vite --port 3333
run: pnpm run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"lint": "eslint .",
"prepare": "pnpm -r run stub",
"release": "bumpp package.json packages/*/package.json"
"release": "bumpp package.json packages/*/package.json",
"test": "pnpm -r run test"
},
"devDependencies": {
"@ow3/eslint-config": "*",
Expand Down

0 comments on commit 396e6db

Please sign in to comment.