feat: github actions
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -19,18 +19,23 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# root
|
# root
|
||||||
- name: Format and unit test
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- name: Install dependencies
|
||||||
- run: npm run format # prettier
|
run: npm ci
|
||||||
- run: npm run test # vitest
|
- name: Format code
|
||||||
|
run: npm run format
|
||||||
|
- name: Run unit tests
|
||||||
|
run: npm run test
|
||||||
|
|
||||||
# frontend
|
# frontend
|
||||||
- name: nextjs build
|
- name: Install frontend dependencies
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
- run: npm ci
|
run: npm ci
|
||||||
- run: npm run build # nextjs build
|
- name: Build frontend
|
||||||
|
working-directory: ./frontend
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user