Skip to content

Revert delay to 1000ms in runner/engine_test.go file #694

Revert delay to 1000ms in runner/engine_test.go file

Revert delay to 1000ms in runner/engine_test.go file #694

Workflow file for this run

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 }}