Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content tests; run tests via GitHub Actions #260

Merged
merged 16 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.22

- name: Run tests
run: go test -v ./...
2 changes: 2 additions & 0 deletions _content/tour/eng/algorithms/fun/freq_concurrent.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build OMIT

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0

Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/arrays/example2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/composition/assertions/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/composition/decoupling/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/composition/grouping/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/composition/mocking/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/constants/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/context/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/data_race/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/data_race/example6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/error-handling/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/error-handling/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/error-handling/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/error-handling/exercise2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/answer1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/example2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/example3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/exporting/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/generics/type-constraints/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/interfaces/example2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/interfaces/example3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/interfaces/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/interfaces/example6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/maps/example3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/maps/example6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/methods/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/methods/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/slices/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/slices/example8.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 2 additions & 0 deletions _content/tour/eng/welcome/sandbox.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build OMIT

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions _content/tour/fre/algorithms/fun/freq_concurrent.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build OMIT

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0

Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/arrays/example2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/composition/assertions/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/composition/decoupling/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/composition/grouping/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/composition/mocking/example1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/constants/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
89 changes: 0 additions & 89 deletions _content/tour/fre/content_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion _content/tour/fre/context/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/data_race/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/data_race/example6.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/error-handling/example4.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/error-handling/example5.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || norun

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/error-handling/exercise1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/error-handling/exercise2.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/fre/exporting/answer1.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build OMIT
//go:build OMIT || nobuild

// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
Expand Down
Loading