Skip to content

Commit

Permalink
ci: add CI workflow and test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbondoc96 committed Aug 3, 2023
1 parent a063d38 commit c6aab65
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: '8.x.x'

- name: Install Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run ci

7 changes: 7 additions & 0 deletions __tests__/Controller.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {describe, expect, it} from 'vitest';

describe('Controller', () => {
it('should pass', () => {
expect(1).toBe(1);
});
});

0 comments on commit c6aab65

Please sign in to comment.