mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
23037e16fd
* chore: Improve GitHub workflows, issue template, and gitignore entries - Add support for manual triggering of build and lint workflows. - Improve bug report template by clarifying prompts and adding checklist and tips for better explanation of issues. - Ignore `.md` files in `.github` and `.github/ISSUE_TEMPLATE` folders. - Add badges for test running and coverage status in README.md. * chore: Add standardized templates to repository - Add pull request and feature request templates to the `.github` folder * docs: Add CONTRIBUTING.md guidelines and update .gitignore. - Update .gitignore to remove exclusions for browsing history files - Add an exclusion for CONTRIBUTING.md in the Community section in .gitignore - Create CONTRIBUTING.md with guidelines for contributors.
44 lines
943 B
YAML
44 lines
943 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
goVer: ["1.21.x"]
|
|
|
|
steps:
|
|
- name: Set up Go ${{ matrix.goVer }}
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: ${{ matrix.goVer }}
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set Git to handle line endings consistently
|
|
run: git config --global core.autocrlf false
|
|
|
|
- name: Format Check
|
|
if: matrix.os != 'windows-latest'
|
|
run: |
|
|
diff -u <(echo -n) <(gofmt -d .)
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
go get gopkg.in/check.v1
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|