Remove unnecessary blank line in Docker push workflow #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Check Formatting, and Run Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
frontend: | |
name: Frontend Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint Check | |
run: npm run lint | |
- name: Run Frontend Tests | |
run: npm test -- --ci --coverage | |
- name: Build | |
run: npm run build | |
env: | |
VITE_BASE_URL: http://localhost:4000 | |
backend: | |
name: Backend Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
cache: true | |
cache-dependency-path: backend/go.sum | |
- name: Install Dependencies | |
working-directory: backend | |
run: go mod download | |
- name: Check Go Formatting | |
working-directory: backend | |
run: | | |
if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then | |
echo "The following files are not formatted correctly:" | |
gofmt -l . | |
exit 1 | |
fi | |
- name: Build Backend | |
working-directory: backend | |
run: go build -v ./... |