Skip to content

Commit

Permalink
build: add CI with Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Mar 11, 2024
1 parent 7e7941f commit 7f67782
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CodeQL Analysis

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
CodeQL-Build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Go Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: stable
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Go vet
run: |
go vet ./...
- name: Go Test
run: |
go test ./...

0 comments on commit 7f67782

Please sign in to comment.