Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CWSpear authored Aug 29, 2022
1 parent a8e9cdd commit 0c39071
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Go Mod
run: go mod download && go mod vendor

- name: Make Binaries
run: make binary-linux-amd64

- name: Change Permissions
run: chmod +x ./bin/linux/amd64/local-persist

- name: Start in the Background
run: sudo ./bin/linux/amd64/local-persist &

- name: Integration Tests
run: ./scripts/integration.sh

- name: Unit Tests
run: make test

0 comments on commit 0c39071

Please sign in to comment.