Skip to content

Commit d0a208f

Browse files
authored
Merge pull request #134 from chebread/update-ci
Update CI to GitHub Actions
2 parents 3d8bc22 + af672a3 commit d0a208f

4 files changed

Lines changed: 48 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
12+
13+
jobs:
14+
test:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
runs-on: ${{ matrix.os }}
19+
name: Go 1.25 on ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: "1.25.x"
26+
27+
- name: Lint
28+
if: matrix.os == 'ubuntu-latest'
29+
run: |
30+
if [ -n "$(gofmt -l .)" ]; then
31+
echo "Go code is not formatted. Run 'gofmt -w .'"
32+
exit 1
33+
fi
34+
go vet ./...
35+
36+
- name: Install
37+
run: go install ./cmd/devd
38+
39+
- name: Test
40+
run: |
41+
go test -v -race ./...
42+
go run ./cmd/devd --help

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

fileserver/fileserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func localRedirect(w http.ResponseWriter, r *http.Request, newPath string) {
229229
// To use the operating system's file system implementation,
230230
// use http.Dir:
231231
//
232-
// http.Handle("/", &fileserver.FileServer{Root: http.Dir("/tmp")})
232+
// http.Handle("/", &fileserver.FileServer{Root: http.Dir("/tmp")})
233233
type FileServer struct {
234234
Version string
235235
Root http.FileSystem

fileserver/z_last_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ func afterTest(t *testing.T) {
4646
}
4747
var bad string
4848
badSubstring := map[string]string{
49-
").readLoop(": "a Transport",
50-
").writeLoop(": "a Transport",
49+
").readLoop(": "a Transport",
50+
").writeLoop(": "a Transport",
5151
"created by net/http/httptest.(*Server).Start": "an httptest.Server",
52-
"timeoutHandler": "a TimeoutHandler",
53-
"net.(*netFD).connect(": "a timing out dial",
54-
").noteClientGone(": "a closenotifier sender",
52+
"timeoutHandler": "a TimeoutHandler",
53+
"net.(*netFD).connect(": "a timing out dial",
54+
").noteClientGone(": "a closenotifier sender",
5555
}
5656
var stacks string
5757
for i := 0; i < 4; i++ {

0 commit comments

Comments
 (0)