You've already forked top-wallpaper
update-deps #1
@@ -3,12 +3,44 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
name: 🚨 Lint Code Base
|
name: 🚨 Test Code Base
|
||||||
run-name: ${{ github.workflow }}-{{ github.ref_name }}-{{ github.run_number }}
|
run-name: ${{ github.workflow }}-{{ github.ref_name }}-{{ github.run_number }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: '1.24.6'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
test-go:
|
||||||
|
name: 🔍 🐹 Go Tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: 🛡️ 🔒 Add Siteworx CA Certificates
|
||||||
|
run: |
|
||||||
|
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
|
||||||
|
update-ca-certificates
|
||||||
|
|
||||||
|
- name: ⚙️ 🐹 Set up Go Environment
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: 📖 🔍 Checkout Repository Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: 📦 📥 Install Dependencies
|
||||||
|
run: |
|
||||||
|
go mod download
|
||||||
|
|
||||||
|
- name: ✅ 🔍 Run Go Tests
|
||||||
|
run: |
|
||||||
|
go test -v ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
golangci-lint:
|
golangci-lint:
|
||||||
name: 🧹 golangci-lint
|
name: 🧹 Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Checkout code
|
- name: 📥 Checkout code
|
||||||
@@ -17,7 +49,7 @@ jobs:
|
|||||||
- name: 🛠️ Set up Go
|
- name: 🛠️ Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.24.6'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- name: 📦 📥 Install Dependencies
|
- name: 📦 📥 Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user