Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #22 from Amnesic-Systems/test-on-macos
Browse files Browse the repository at this point in the history
Add workflow job for macOS.
  • Loading branch information
NullHypothesis authored Mar 3, 2024
2 parents 75a773c + c8e7f59 commit a37caf0
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 145 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/golangci-lint.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/nitriding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: nitriding

on:
push:
tags: [v*]
branches: [master]
pull_request:
branches: [master]

jobs:
Test:
strategy:
matrix:
go: [1.22, 1.21]
os: [ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}

- name: Build
run: go build ./...

- name: Test
run: go test ./...

Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: internal
skip-cache: true

CodeQL:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit a37caf0

Please sign in to comment.