Skip to content

Commit

Permalink
Adding github action CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidferlay committed Jun 6, 2024
1 parent e1b214e commit d0194cd
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 2 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Commit Workflow

on:
push:
workflow_dispatch:

jobs:

commands-ok:
name: Ensure main commands do not fail
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Commands
run: |
set -x
date
pwd
whoami
make deps build
ls -lah bin/launchr
mkdir -p .compose/build/
touch .compose/build/test
./bin/launchr package
export file="$(ls -t .compose/artifacts/ | head -n 1)"; echo ${file}
tar -tf .compose/artifacts/${file}
go-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Commands
run: |
set -x
date
pwd
whoami
make lint
go-tests:
name: Run Go tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Commands
run: |
set -x
date
pwd
whoami
make test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
*.gz
*.gen.go
dist/
vendor/
vendor/
.compose/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ endif
.PHONY: .lint
.lint:
$(info Running lint...)
$(GOLANGCI_BIN) run --fix ./...
$(GOLANGCI_BIN) run --fix --timeout 3m0s ./...

0 comments on commit d0194cd

Please sign in to comment.