good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit b0ac42c3 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Cleanup CI image

parent dbae7698
Branches
Tags
No related merge requests found
...@@ -4,19 +4,19 @@ on: [push] ...@@ -4,19 +4,19 @@ on: [push]
jobs: jobs:
fmt: fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: nhooyr/websocket-ci@sha256:ea94e078d2d589d654a2c759d952bf4199c754d80dadb20696dc3902359027cb container: nhooyr/websocket-ci@sha256:046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: make fmt - run: make fmt
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: nhooyr/websocket-ci@sha256:ea94e078d2d589d654a2c759d952bf4199c754d80dadb20696dc3902359027cb container: nhooyr/websocket-ci@sha256:046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: make lint - run: make lint
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: nhooyr/websocket-ci@sha256:ea94e078d2d589d654a2c759d952bf4199c754d80dadb20696dc3902359027cb container: nhooyr/websocket-ci@sha256:046cd02e79dcbf81dc06eb6fd333fa8643f2503f437ddd46a4c1af9132078a2c
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: make test - run: make test
......
...@@ -13,5 +13,5 @@ include ci/lint.mk ...@@ -13,5 +13,5 @@ include ci/lint.mk
include ci/test.mk include ci/test.mk
ci-image: ci-image:
docker build -f ./ci/image/Dockerfile -t nhooyr/websocket-ci . docker build -f ./ci/Dockerfile -t nhooyr/websocket-ci .
docker push nhooyr/websocket-ci docker push nhooyr/websocket-ci
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
[![GitHub Release](https://img.shields.io/github/v/release/nhooyr/websocket?color=6b9ded&sort=semver)](https://github.com/nhooyr/websocket/releases) [![GitHub Release](https://img.shields.io/github/v/release/nhooyr/websocket?color=6b9ded&sort=semver)](https://github.com/nhooyr/websocket/releases)
[![GoDoc](https://godoc.org/nhooyr.io/websocket?status.svg)](https://godoc.org/nhooyr.io/websocket) [![GoDoc](https://godoc.org/nhooyr.io/websocket?status.svg)](https://godoc.org/nhooyr.io/websocket)
[![Codecov](https://img.shields.io/coveralls/github/nhooyr/websocket?color=65d6a4)](https://coveralls.io/github/nhooyr/websocket) [![Coveralls](https://img.shields.io/coveralls/github/nhooyr/websocket?color=65d6a4)](https://coveralls.io/github/nhooyr/websocket)
[![Actions Status](https://github.com/nhooyr/websocket/workflows/ci/badge.svg)](https://github.com/nhooyr/websocket/actions) [![Actions Status](https://github.com/nhooyr/websocket/workflows/ci/badge.svg)](https://github.com/nhooyr/websocket/actions)
websocket is a minimal and idiomatic WebSocket library for Go. websocket is a minimal and idiomatic WebSocket library for Go.
......
...@@ -11,8 +11,6 @@ ENV PAGER=cat ...@@ -11,8 +11,6 @@ ENV PAGER=cat
ENV CI=true ENV CI=true
ENV MAKEFLAGS="--jobs=8 --output-sync=target" ENV MAKEFLAGS="--jobs=8 --output-sync=target"
COPY ./ci/image/gitignore /root/.config/git/ignore
RUN npm install -g prettier RUN npm install -g prettier
RUN go get golang.org/x/tools/cmd/stringer RUN go get golang.org/x/tools/cmd/stringer
RUN go get golang.org/x/tools/cmd/goimports RUN go get golang.org/x/tools/cmd/goimports
......
node_modules
.DS_Store
.idea
.gitignore
.dockerignore
...@@ -8,6 +8,8 @@ ci/out/coverage.html: gotest ...@@ -8,6 +8,8 @@ ci/out/coverage.html: gotest
coveralls: gotest coveralls: gotest
echo "--- coveralls" echo "--- coveralls"
export GIT_BRANCH=$${GITHUB_REF}
export BUILD_NUMBER=$${GITHUB_ACTION}
goveralls -coverprofile=ci/out/coverage.prof -service=github-actions goveralls -coverprofile=ci/out/coverage.prof -service=github-actions
gotest: gotest:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment