Add github actions running unit tests
Next step will be to delete .travis.yml and the travis webhook from
agent repo settings.
That will be done after we've had time to evaluate and verify that
github actions are working well and providing consistent test results.
@@ -22,23 +22,23 @@ jobs:
make get-deps
make static-check
- # unit-tests:
- # name: Linux unit tests
- # runs-on: ubuntu-latest
- # steps:
- # - uses: actions/setup-go@v2
- # with:
- # go-version: 1.12
- # - uses: actions/checkout@v2
- # with:
- # submodules: true
- # path: src/github.com/aws/amazon-ecs-agent
- # - name: make test
- # run: |
- # export GOPATH=$GITHUB_WORKSPACE
- # cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
- # make test-silent
- # make analyze-cover-profile
+ unit-tests:
+ name: Linux unit tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/setup-go@v2
+ with:
+ go-version: 1.12
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ path: src/github.com/aws/amazon-ecs-agent
+ - name: make test
+ run: |
+ export GOPATH=$GITHUB_WORKSPACE
+ cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
+ make test-silent
+ make analyze-cover-profile
x-platform-build:
name: Cross platform build
@@ -57,21 +57,21 @@ jobs:
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
make xplatform-build
- # windows-unit-tests:
- # name: Windows unit tests
- # runs-on: windows-latest
- # steps:
- # - uses: actions/setup-go@v2
- # with:
- # go-version: 1.12
- # - uses: actions/checkout@v2
- # with:
- # submodules: true
- # path: src/github.com/aws/amazon-ecs-agent
- # - name: run tests
- # working-directory:
- # run: |
- # $Env:GOPATH = "$Env:GITHUB_WORKSPACE"
- # cd "$Env:GITHUB_WORKSPACE"
- # cd "src/github.com/aws/amazon-ecs-agent"
- # go test -v -race -tags unit -timeout 40s ./agent/...
+ windows-unit-tests:
+ name: Windows unit tests
+ runs-on: windows-latest
+ steps:
+ - uses: actions/setup-go@v2
+ with:
+ go-version: 1.12
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ path: src/github.com/aws/amazon-ecs-agent
+ - name: run tests
+ working-directory:
+ run: |
+ $Env:GOPATH = "$Env:GITHUB_WORKSPACE"
+ cd "$Env:GITHUB_WORKSPACE"
+ cd "src/github.com/aws/amazon-ecs-agent"
+ go test -v -race -tags unit -timeout 40s ./agent/...
