Skip to content

Commit

Permalink
ci: -
Browse files Browse the repository at this point in the history
  • Loading branch information
enenumxela committed Nov 28, 2023
1 parent 85a9ad5 commit 74022b2
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
go-version: '>=1.21'
-
name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -42,4 +42,4 @@ jobs:
-
name: Go build
run: go build -v .
working-directory: ./cmd/xurlfind3r
working-directory: ./cmd/xsubfind3r
46 changes: 46 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 🚨 CodeQL Analysis

on:
push:
branches:
- "main"
paths:
- '**.go'
- '**.mod'
pull_request:
branches:
- "main"
paths:
- '**.go'
- '**.mod'
workflow_dispatch:

jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'go' ]

steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
16 changes: 8 additions & 8 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ on:
- '**.go'
- '**.mod'
workflow_dispatch:


permissions:
contents: read

jobs:
lint:
name: Lint Test
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
go-version: '>=1.21'
cache: false
-
name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -38,6 +38,6 @@ jobs:
name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
version: v1.54.2
args: --timeout 5m
working-directory: .
working-directory: .
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: 🎉 Release

on:
create:
branches:
- main
push:
tags:
- v*.*.*
- 'v*.*.*'
- '*.*.*'
workflow_dispatch:

jobs:
release:
Expand All @@ -16,7 +16,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
go-version: '>=1.21'
-
name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -33,4 +33,4 @@ jobs:
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}"
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"

0 comments on commit 74022b2

Please sign in to comment.