Skip to content

Commit

Permalink
Merge pull request #3 from jeff-roche/ci-cd
Browse files Browse the repository at this point in the history
feat: Ci
  • Loading branch information
jeff-roche committed Jun 2, 2022
2 parents 1100f41 + 439f323 commit c50f08f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is a basic workflow to help you get started with Actions

name: release

# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the main branch
push:
branches:
- 'main'

workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: Install tools
run: bash ./scripts/install_deploy_tools.sh
-
name: Run goreleaser
run: bash ./scripts/deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: release

# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the main branch
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: Build
run: go build -v ./...
-
name: Test
run: go test -v ./...

0 comments on commit c50f08f

Please sign in to comment.