Skip to content

Commit

Permalink
Merge pull request #1 from aurora-is-near/ci/add-checks
Browse files Browse the repository at this point in the history
ci: add checks
  • Loading branch information
diegofigs authored Aug 13, 2024
2 parents 717b323 + 0bbd585 commit a2c58ac
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
- pull_request
- workflow_dispatch

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

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- run: pnpm install
- run: pnpm format:check
- run: pnpm test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"format": "prettier --write 'machine/*.ts'"
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit a2c58ac

Please sign in to comment.