Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Go 1.25 on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: "1.25.x"

- name: Lint
if: matrix.os == 'ubuntu-latest'
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted. Run 'gofmt -w .'"
exit 1
fi
go vet ./...

- name: Install
run: go install ./cmd/devd

- name: Test
run: |
go test -v -race ./...
go run ./cmd/devd --help
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion fileserver/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func localRedirect(w http.ResponseWriter, r *http.Request, newPath string) {
// To use the operating system's file system implementation,
// use http.Dir:
//
// http.Handle("/", &fileserver.FileServer{Root: http.Dir("/tmp")})
// http.Handle("/", &fileserver.FileServer{Root: http.Dir("/tmp")})
type FileServer struct {
Version string
Root http.FileSystem
Expand Down
10 changes: 5 additions & 5 deletions fileserver/z_last_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ func afterTest(t *testing.T) {
}
var bad string
badSubstring := map[string]string{
").readLoop(": "a Transport",
").writeLoop(": "a Transport",
").readLoop(": "a Transport",
").writeLoop(": "a Transport",
"created by net/http/httptest.(*Server).Start": "an httptest.Server",
"timeoutHandler": "a TimeoutHandler",
"net.(*netFD).connect(": "a timing out dial",
").noteClientGone(": "a closenotifier sender",
"timeoutHandler": "a TimeoutHandler",
"net.(*netFD).connect(": "a timing out dial",
").noteClientGone(": "a closenotifier sender",
}
var stacks string
for i := 0; i < 4; i++ {
Expand Down