Skip to content

rename options to chmod+x for clarity #785

rename options to chmod+x for clarity

rename options to chmod+x for clarity #785

Workflow file for this run

name: build
on:
push:
branches:
tags:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set up go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21"
id: go
- name: checkout
uses: actions/checkout@v3
- name: build and test
run: |
chmod 0600 ./pkg/executor/testdata/test_ssh_key
go test -v -timeout=100s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./...
cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: install goveralls
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.45.0
GO111MODULE=off go get -u -v github.com/mattn/goveralls
- name: submit coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}