Skip to content

Commit

Permalink
Merge pull request #116 from ubirch/CPI-1387-include-tests-in-workflow
Browse files Browse the repository at this point in the history
CPI-1387 include test execution in workflow
  • Loading branch information
leroxyl authored Feb 7, 2023
2 parents ceaf854 + 125f487 commit 6f85a66
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
name: Build

#############################
# Start the job on all push #
#############################
on:
push:
branches:
- master # or the name of your main branch
- master
pull_request:
types: [opened, synchronize, reopened]


###############
# Set the Job #
###############

jobs:
build:
# Name the Job
name: Build
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: cd main && go build ./...

- name: Test
run: cd main && go test -short ./...

0 comments on commit 6f85a66

Please sign in to comment.