Skip to content

Commit

Permalink
Merge pull request #56 from hueristiq/dev
Browse files Browse the repository at this point in the history
Development v0.5.0
  • Loading branch information
enenumxela authored Oct 20, 2024
2 parents 365dbec + b2b1bc1 commit aa4d5c4
Show file tree
Hide file tree
Showing 37 changed files with 1,391 additions and 1,301 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
bin
.gitignore
.golangci.yaml
.goreleaser.yaml
CONTRIBUTING.md
LICENSE
README.md
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🔨 Build Test
name: 🔨 Build

on:
push:
Expand All @@ -17,17 +17,17 @@ on:

jobs:
build:
name: Build Test
name: Build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-12]
runs-on: ${{ matrix.os }}
steps:
-
name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version: '>=1.23'
-
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/xsubfind3r
working-directory: ./cmd/xurlfind3r
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🚨 CodeQL Analysis
name: 🚨 Analyze Code (CodeQL)

on:
push:
Expand All @@ -17,30 +17,30 @@ on:

jobs:
analyze:
name: CodeQL Analysis
name: Analyze Code (CodeQL)
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

steps:
-
name: Checkout repository
-
name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
44 changes: 44 additions & 0 deletions .github/workflows/dockerhub-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 🐳 DockerHub Push

on:
workflow_run:
workflows: ["🎉 Release"]
types:
- completed
workflow_dispatch:

jobs:
push:
name: DockerHub Push
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v4

-
name: Get Github tag
id: meta
run: |
curl --silent "https://api.github.com/repos/hueristiq/xurlfind3r/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
-
name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: hueristiq/xurlfind3r:latest,hueristiq/xurlfind3r:${{ steps.meta.outputs.TAG }}
14 changes: 8 additions & 6 deletions .github/workflows/lint-test.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 💅 Lint Test
name: 💅 Lint

on:
push:
Expand All @@ -20,14 +20,16 @@ permissions:

jobs:
lint:
name: Lint Test
name: Lint
name: Lint
runs-on: ubuntu-latest
steps:
-
name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version: '>=1.23'
go-version: '>=1.23'
cache: false
-
name: Checkout the repository
Expand All @@ -36,8 +38,8 @@ jobs:
fetch-depth: 0
-
name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.2
version: v1.61.0
args: --timeout 5m
working-directory: .
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
steps:
-
name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version: '>=1.23'
-
name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Executable

bin
Loading

0 comments on commit aa4d5c4

Please sign in to comment.