diff options
| -rw-r--r-- | .github/workflows/build-docker.yaml | 1 | ||||
| -rw-r--r-- | .github/workflows/ci.yaml | 54 |
2 files changed, 54 insertions, 1 deletions
diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 8e3c258..e18bdf3 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -4,7 +4,6 @@ on: push: tags: - 'v*' - workflow_dispatch: jobs: build-and-push: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..b5b2503 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: [main] + +jobs: + frontend: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + cache-dependency-path: frontend/package-lock.json + + - name: Install frontend dependencies + run: cd frontend && npm ci + + - name: Generate code + run: cd frontend && npm run generate + + - name: Lint + run: cd frontend && npm run check + + - name: Build + run: cd frontend && npm run build + + backend: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Install just + uses: extractions/setup-just@v3 + + - name: Generate code + run: cd backend && just generate + + - name: Lint + run: cd backend && just check + + - name: Build + run: cd backend && just build |
