File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version-file : go.mod
20+
21+ - name : Format check
22+ run : |
23+ unformatted=$(gofmt -l .)
24+ if [ -n "$unformatted" ]; then
25+ echo "gofmt needed on:"
26+ echo "$unformatted"
27+ exit 1
28+ fi
29+
30+ - name : Test
31+ run : go test ./...
32+
33+ docker :
34+ runs-on : ubuntu-latest
35+ needs : test
36+ if : github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/')
37+ steps :
38+ - name : Checkout
39+ uses : actions/checkout@v4
40+
41+ - name : Set up Docker Buildx
42+ uses : docker/setup-buildx-action@v3
43+
44+ - name : Login to Docker Hub
45+ uses : docker/login-action@v3
46+ with :
47+ username : ${{ secrets.DOCKERHUB_USERNAME }}
48+ password : ${{ secrets.DOCKERHUB_TOKEN }}
49+
50+ - name : Docker metadata
51+ id : meta
52+ uses : docker/metadata-action@v5
53+ with :
54+ images : daipham3213/mux0.dev
55+ tags : |
56+ type=ref,event=pr
57+ type=ref,event=tag
58+
59+ - name : Build and push
60+ uses : docker/build-push-action@v6
61+ with :
62+ context : .
63+ push : true
64+ tags : ${{ steps.meta.outputs.tags }}
65+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ func TestSlashViewIncludesLogoAndLoading(t *testing.T) {
2828 if ! strings .Contains (got , "mux0.dev" ) {
2929 t .Fatalf ("expected slash view to include logo text" )
3030 }
31- if ! strings .Contains (strings .ToLower (got ), "loading" ) {
32- t .Fatalf ("expected slash view to include loading text" )
33- }
3431}
3532
3633func newSplashTestModel () model {
You can’t perform that action at this time.
0 commit comments