Skip to content

Added lots of configuration and documentation to start the project #6

Added lots of configuration and documentation to start the project

Added lots of configuration and documentation to start the project #6

Workflow file for this run

name: Go Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
working-directory: ./src/Backend/opti-sql-go
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run tests
working-directory: ./src/Backend/opti-sql-go
run: go test -v ./...
race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run tests with race detector
working-directory: ./src/Backend/opti-sql-go
run: go test -race -v ./...