Skip to content

Commit

Permalink
🔄 Synced file(s) with devnw/shared (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby committed Dec 19, 2021
1 parent d644bf0 commit c2ec410
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 17 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: "Code Scanning - Action"

on:
push:
branches: main
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 1 * * 0'

jobs:
CodeQL-Build:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2.4.0
- name: Build
run: go build ./...
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
19 changes: 3 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2.4.0
- name: Build changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@main
- name: Create Github Release from Tag
uses: "marvinpinto/action-automatic-releases@latest"
with:
configuration: 'release-config.json'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ repos:
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.30.0
hooks:
- id: markdownlint-fix
- id: markdownlint-fix
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
hooks:
- id: shellcheck

0 comments on commit c2ec410

Please sign in to comment.