Skip to content

Commit

Permalink
run the CI workflow/action every month (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t committed Feb 1, 2021
1 parent 82aaa29 commit 470c6da
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,55 @@
name: CI

on: [push, pull_request]
on:
# Pushes and pulls to all branches
push:
pull_request:

# Run on the first day of every month
schedule:
- cron: "0 0 1 * *"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Build and test everything
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout Code
uses: actions/checkout@v2

# Set up the GoLang enviroment
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

# Download all the tools used in the steps that follow
- name: Set up Tools
run: |
go get -u github.com/fzipp/gocyclo/cmd/gocyclo
go get -u github.com/mattn/goveralls
go get -u golang.org/x/lint/golint
# Run all the unit-tests
- name: Test
run: |
make test
# Run some tests to ensure no race conditions exist
- name: Test for Race Conditions
run: make test-race

# Run the benchmarks to manually ensure no performance degradation
- name: Benchmark
run: make bench

# Upload all the unit-test coverage reports to Coveralls
- name: Upload Coverage Report
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: goveralls -service=travis-pro -coverprofile=.coverprofile

0 comments on commit 470c6da

Please sign in to comment.