Skip to content

Commit

Permalink
👷 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian committed Oct 21, 2021
1 parent 0bc4bcf commit c6f4847
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-bats-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aiou/bin-template": patch
---

add ci
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js CI

on:
push:
pull_request:
branches: [master,release]

jobs:
test:
runs-on: ubuntu-latest
name: test

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: npm i pnpm@latest -g
- name: Install
run: |
pnpm install --frozen-lockfile=false
- name: Test
run: |
pnpm test
2 changes: 1 addition & 1 deletion test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import execa from 'execa'
import path from 'path'
import pkg from '../package.json'

const cli = path.resolve(__dirname, '../dist/cli.js')
const cli = path.resolve(__dirname, '../lib/cli.js')

describe('version', () => {
it('print version should work', async () => {
Expand Down

0 comments on commit c6f4847

Please sign in to comment.