Skip to content

Commit

Permalink
Merge pull request #28 from asecurityteam/github-actions
Browse files Browse the repository at this point in the history
GitHub Actions
  • Loading branch information
ensary authored Mar 27, 2024
2 parents b451610 + 8eea71c commit 6824a1e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 155 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push]

jobs:
golang:
runs-on: ubuntu-latest # we execute everything except make in docker anyway
name: GoLang Basics
steps:
- name: Checkout
uses: actions/checkout@v4
- name: FS Permissions
# workaround for permissions with contaner attempting to create directories
run: chmod 777 -R "$(pwd)"
- name: Dep
run: make dep
- name: Lint
run: make lint
- name: Unit Tests
run: make test
- name: Integration Tests
run: make integration
- name: Test Coverage
run: make coverage
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
files: .coverage/combined.cover.out
token: ${{ secrets.CODECOV_TOKEN }}
138 changes: 0 additions & 138 deletions .golangci.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TAG := $(shell git rev-parse --short HEAD)
DIR := $(shell pwd -L)
SDCLI_VERSION :=v1.4.0
SDCLI_VERSION :=v1.5
SDCLI=docker run --rm -v "$(DIR):$(DIR)" -w "$(DIR)" asecurityteam/sdcli:$(SDCLI_VERSION)


Expand All @@ -16,7 +16,7 @@ test:
integration:
DIR=$(DIR) \
PROJECT_PATH=/go/src/$(PROJECT_PATH) \
docker-compose \
docker compose \
-f docker-compose.it.yml \
up \
--abort-on-container-exit \
Expand Down

0 comments on commit 6824a1e

Please sign in to comment.