Skip to content

Pin Github Actions dependencies #131

Pin Github Actions dependencies

Pin Github Actions dependencies #131

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 https://github.com/actions/checkout/releases/tag/v4
- name: Set up MySQL
uses: mirromutth/mysql-action@de1fba8b3f90ce8db80f663a7043be3cf3231248 # v1.1 https://github.com/mirromutth/mysql-action/releases/tag/v1.1
with:
mysql database: 'sharkey_test'
mysql root password: 'root'
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 https://github.com/actions/setup-go/releases/tag/v5
with:
go-version: '1.20.x'
- name: Go Build
run: go build -v ./...
- name: Go Test
run: go test -v ./...
- name: Build Server Container
run: docker build -t server:latest -f Dockerfile .
- name: Build Client Container
run: docker build -t client:latest -f DockerfileClientTest .
- name: Integration Test
run: ./integration-test.sh