Skip to content
Snippets Groups Projects
Commit f9fec482 authored by Maksym Trofimenko's avatar Maksym Trofimenko
Browse files

restructures gh actions

parent a320619e
No related branches found
No related tags found
No related merge requests found
name: "Build container images" name: "Build Release"
on: on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push: push:
tags: tags:
- 'v*.*.*' - 'v*.*.*'
......
name: "Test PR"
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
jobs:
tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Setup Go Cache Paths
id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >>$GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >>$GITHUB_OUTPUT
- name: Go Build Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Run Unit Tests
id: run-tests
run: |
./do.sh tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment