Add Internal and Dev Environments #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./src/go.mod | |
- name: Run unit tests | |
run: make unitTests | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./src/go.mod | |
- name: Vet | |
run: make vet | |
- name: Go Fmt | |
run: make formatCheck | |
securityScanAnalyze: | |
name: CodeQL Security Scan | |
uses: ./.github/workflows/codeql_reusable.yml | |
docker-build-test: | |
name: Docker Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./src/go.mod | |
- name: Build Image | |
run: make dockerBuild | |
# Not using the Makefile because it includes `-i` which bombs out in GitHub Actions. | |
- name: Run Container | |
run: docker run -d -t reportstream-sftp-ingestion |