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.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
name: run tests
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [ "1.21.x" ]
|
|
platform: [ubuntu-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Install Go
|
|
if: success()
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Run tests
|
|
run: go test -v ./... -covermode=count
|
|
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Go
|
|
if: success()
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.21.x"
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Calc coverage
|
|
run: |
|
|
go test -v ./... -covermode=count -coverprofile=coverage.out
|
|
|
|
- name: Convert coverage.out to coverage.lcov
|
|
uses: jandelgado/gcov2lcov-action@v1
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@v2
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
path-to-lcov: coverage.lcov |