Skip to content

chore: backend setup #18

chore: backend setup

chore: backend setup #18

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
environment: CI
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Create .env File
working-directory: ./backend/
env:
ATLAS_URI: ${{ secrets.ATLAS_URI }}
run: |
touch .env
echo ATLAS_URI=$ATLAS_URI >> .env
echo ENVIRONMENT=Dev >> .env
- name: Test Code
run: cd backend && go test ./...