-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9863 from docker/gha-win-mac-runners
Add `merge` GitHub Actions workflow to run tests on Windows and macOS runners
- Loading branch information
Showing
9 changed files
with
152 additions
and
65 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: merge | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'v2' | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
e2e: | ||
name: Build and test | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [desktop-windows, desktop-macos, desktop-m1] | ||
# mode: [plugin, standalone] | ||
mode: [plugin] | ||
env: | ||
GO111MODULE: "on" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: go.mod | ||
cache: true | ||
check-latest: true | ||
|
||
- name: List Docker resources on machine | ||
run: | | ||
docker ps --all | ||
docker volume ls | ||
docker network ls | ||
docker image ls | ||
- name: Remove Docker resources on machine | ||
continue-on-error: true | ||
run: | | ||
docker kill $(docker ps -q) | ||
docker rm -f $(docker ps -aq) | ||
docker volume rm -f $(docker volume ls -q) | ||
docker ps --all | ||
- name: Unit tests | ||
run: make test | ||
|
||
- name: Build binaries | ||
run: | | ||
make | ||
- name: Check arch of go compose binary | ||
run: | | ||
file ./bin/build/docker-compose | ||
if: ${{ !contains(matrix.os, 'desktop-windows') }} | ||
- | ||
name: Test plugin mode | ||
if: ${{ matrix.mode == 'plugin' }} | ||
run: | | ||
make e2e-compose | ||
- | ||
name: Test standalone mode | ||
if: ${{ matrix.mode == 'standalone' }} | ||
run: | | ||
make e2e-compose-standalone | ||
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
/* | ||
Copyright 2022 Docker Compose CLI authors | ||
|
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