Skip to content

Update README.md

Update README.md #20

name: '[1] Build and Test'
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub
uses: actions/checkout@v4
- name: Start MySQL
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 ./...