mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-09-02 00:58:22 +00:00
chore: release v1.0.1
This commit is contained in:
@@ -35,15 +35,23 @@ jobs:
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
|
||||
- name: Install govulncheck
|
||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
- name: Vulnerability check
|
||||
run: govulncheck ./...
|
||||
|
||||
- name: Install swag
|
||||
run: go install github.com/swaggo/swag/cmd/swag@latest
|
||||
|
||||
- name: Swagger docs up to date
|
||||
run: |
|
||||
cp docs/swagger.json docs/swagger.json.bak
|
||||
swag init -g cmd/beacon/main.go -o docs --parseInternal --parseDependency
|
||||
if [ -n "$(git diff --name-only docs/)" ]; then
|
||||
if ! diff -q docs/swagger.json docs/swagger.json.bak > /dev/null; then
|
||||
echo "Swagger docs are out of date. Run swag init and commit the result."
|
||||
git diff --name-only docs/
|
||||
rm docs/swagger.json.bak
|
||||
exit 1
|
||||
fi
|
||||
rm docs/swagger.json.bak
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# Copyright 2026 Beacon Contributors
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
name: CodeQL
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 8 * * 1' # every Monday at 08:00 UTC
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
if: false # remove after public release and enabled on repo
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: true
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: go
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
@@ -4,6 +4,7 @@ MeshCore Beacon is a MeshCore network observation backend. It connects to one or
|
||||
more MeshCore MQTT brokers, ingests LoRa packet traffic in real time, stores it
|
||||
in PostgreSQL, and streams live events to WebSocket clients.
|
||||
|
||||
[](https://github.com/MeshCore-Beacon/beacon-server/actions/workflows/codeql.yml)
|
||||
[](https://github.com/MeshCore-Beacon/beacon-server/actions/workflows/ci.yml)
|
||||
[](https://github.com/MeshCore-Beacon/beacon-server/actions/workflows/docker-publish.yml)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user