generated from templates/go-generic
fixed test; removed duplicate workflow
All checks were successful
Tests / test (pull_request) Successful in 16s
All checks were successful
Tests / test (pull_request) Successful in 16s
This commit is contained in:
parent
247a7376b6
commit
c4651509d5
2 changed files with 1 additions and 38 deletions
|
@ -1,37 +0,0 @@
|
|||
---
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
env:
|
||||
GO_TEST_VERBOSE: "1"
|
||||
GO_TEST_COVER: "1"
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: https://code.forgejo.org/actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Test
|
||||
run: go run magefiles/main.go -v test
|
||||
|
||||
lint:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Setup Go
|
||||
uses: https://code.forgejo.org/actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Lint
|
||||
uses: https://github.com/golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.54
|
|
@ -12,7 +12,7 @@ import (
|
|||
func TestCrawler(t *testing.T) {
|
||||
testBaseURL := "https://example.com"
|
||||
|
||||
testCrawler, err := crawler.NewCrawler(testBaseURL)
|
||||
testCrawler, err := crawler.NewCrawler(testBaseURL, 1, 10)
|
||||
if err != nil {
|
||||
t.Fatalf("Test 'TestCrawler' FAILED: unexpected error creating the crawler: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue