Skip to content

workflow: simplify shell commands #36

workflow: simplify shell commands

workflow: simplify shell commands #36

Workflow file for this run

name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mirromutth/[email protected]
with:
character set server: 'utf8mb4'
collation server: 'utf8mb4_unicode_ci'
mysql database: 'test_snippetbox'
mysql root password: 'pass'
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get -d -v ./...
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v ./...