Skip to content

Commit

Permalink
Merge pull request #3 from weichain/feat/workflows
Browse files Browse the repository at this point in the history
feat: workflows
  • Loading branch information
kraikov authored Oct 18, 2023
2 parents 663256d + eb0f2da commit f368e41
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: CI

on:
push:
pull_request:
branches:
- '*'
- main

jobs:
lint-format-tests:
lint:
runs-on: ubuntu-latest
env:
MAIN_DATABASE_URI: ${{ secrets.MAIN_DATABASE_URI }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -30,6 +28,25 @@ jobs:

- name: Check code formatting
run: pnpm format --check
tests:
needs: [lint]
runs-on: ubuntu-latest
env:
MAIN_DATABASE_URI: ${{ secrets.MAIN_DATABASE_URI }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Start Redis
run: docker-compose --file docker/redis/docker-compose.yaml up -d
Expand Down

0 comments on commit f368e41

Please sign in to comment.