Skip to content

Merge pull request #15 from AlexNDRmac/circleci-to-actions #1

Merge pull request #15 from AlexNDRmac/circleci-to-actions

Merge pull request #15 from AlexNDRmac/circleci-to-actions #1

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- '**.md'
pull_request:
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Setup cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: make build
- name: Run tests
run: make test
- name: Run app
run: make run