Skip to content

Commit

Permalink
ci: add base CI as a Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
juliencrn committed Jun 6, 2023
1 parent 1ac0d41 commit f5a363c
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and test

on: [push, pull_request]

env:
NODE_VERSION: 16
PNPM_VERSION: 8

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint

- name: Types check
run: pnpm types-check

- name: Build
run: pnpm build

- name: Test
run: pnpm test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"plop": "^3.0.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"turbo": "^1.9.9",
"version-bump-prompt": "^6.1.0",
"zx": "^7.2.2"
},
Expand Down
78 changes: 78 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5a363c

Please sign in to comment.