Revert delay to 1000ms in runner/engine_test.go file #694
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
name: build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: check out code | |
uses: actions/checkout@v2 | |
- name: setup Go 1.21 | |
id: go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
- name: build | |
run: make build | |
- name: install dependency | |
run: if [ $(uname) == "Darwin" ]; then brew install gnu-sed ;fi | |
- name: run Unit tests. | |
run: go install github.com/go-delve/delve/cmd/dlv@latest && go test ./... -v -covermode=count -coverprofile=coverage.txt | |
- name: upload Coverage report to CodeCov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt | |
verbose: true | |
push_to_docker_latest: | |
name: push master code to docker latest image | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: cosmtrek/air:latest | |
- name: show image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |