Skip to content

chore: backend setup #15

chore: backend setup

chore: backend setup #15

Workflow file for this run

name: backend
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Lint Code
uses: golangci/golangci-lint-action@v6
with:
version: latest
working-directory: ./backend/
args: --timeout=5m
test:
name: Test Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Create .env File
with:
working-directory: ./backend/
env:
ATLAS_URI: ${{ secrets.ATLAS_URI }}
run: |

Check failure on line 38 in .github/workflows/backend.yml

View workflow run for this annotation

GitHub Actions / backend

Invalid workflow file

The workflow is not valid. .github/workflows/backend.yml (Line: 38, Col: 9): Unexpected value 'run' .github/workflows/backend.yml (Line: 33, Col: 9): Required property is missing: uses
touch .env
echo ATLAS_URI=$ATLAS_URI >> .env
echo ENVIRONMENT=Dev >> .env
- name: Test Code
run: cd backend && go test ./...