Skip to content

Commit

Permalink
github actions: add more checks to the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lean1190 committed Aug 27, 2023
1 parent 2aa9e72 commit a411903
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 28 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ trim_trailing_whitespace = true

[*.json]
indent_size = 2

[*.yml]
indent_size = 2
61 changes: 61 additions & 0 deletions .github/workflows/push-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: push-pipeline
run-name: ${{ github.workflow }} - ${{ github.actor }} - Attempt ${{ github.run_attempt }}
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install node modules
run: npm install
- name: Generate prisma client
run: npm run db:apply-change
- name: Run unit tests
run: npm run test:unit
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install node modules
run: npm install
- name: Run integration tests
run: npm run test:integration
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install node modules
run: npm install
- name: Lint code
run: npm run lint
build-storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install node modules
run: npm install
- name: Build storybook
run: npm run storybook:build
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install node modules
run: npm install
- name: Build storybook
run: npm run vercel-build
28 changes: 0 additions & 28 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit a411903

Please sign in to comment.