Skip to content

Commit

Permalink
ci: Convert from CircleCI to GH actions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 authored Aug 20, 2024
1 parent 146936d commit f357842
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and run
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 9 * * *'
push:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md'

jobs:
build-and-run:
runs-on: ubuntu-latest

permissions:
id-token: write # Needed if using OIDC to get release secrets.

steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Build
run: |
go mod tidy
go build -o hello-app .
- uses: launchdarkly/gh-actions/actions/[email protected]
with:
use_server_key: true
role_arn: ${{ vars.AWS_ROLE_ARN }}
command: ./hello-app

0 comments on commit f357842

Please sign in to comment.