Skip to content

Fix a typo in a directory name #1

Fix a typo in a directory name

Fix a typo in a directory name #1

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:latest
env:
MARIADB_USER: testuser
MARIADB_PASSWORD: testpass
MARIADB_ROOT_PASSWORD: rootpass
MARIADB_DATABASE: testdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=10s
--health-retries=10
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v ./...
- name: Run tests
run: go test -v ./...
env:
MARIADB_HOST: localhost
MARIADB_USER: testuser
MARIADB_PASSWORD: testpass
MARIADB_DBNAME: testdb
MARIADB_PORT: 3306