From 79359dafebee51267aa2f6172df9c81c329dd49f Mon Sep 17 00:00:00 2001 From: Michael Long Date: Fri, 20 Sep 2024 21:54:27 -0400 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..557e54c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: [push] + +jobs: + lint_backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Lint backend code + run: ./scripts/lint_backend.sh + + lint_etl: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Lint ETL code + run: ./scripts/lint_etl.sh + + lint_frontend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Lint frontend code + run: ./scripts/lint_frontend.sh + + test_backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Start database services + run: docker compose up -d database redis + - name: Wait for database startup to finish + uses: jakejarvis/wait-action@master + with: + time: '10s' + - name: Run backend tests + run: ./scripts/test_backend.sh