Update README.md #1001
Workflow file for this run
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
# Running locally https://yonatankra.com/how-to-test-github-actions-locally-using-act/ | |
name: Go | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
environment: actions | |
name: Build and Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.20 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Test | |
run: go test -v ./... | |
- name: Build | |
run: go build -v -o ghorg . | |
- name: Run GitHub Cloud Integration Tests | |
run: scripts/github_cloud_integration_tests.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GHORG_GITHUB_TOKEN }} | |
- name: Run Bitbucket Cloud Integration Tests | |
run: scripts/bitbucket_cloud_integration_tests.sh | |
env: | |
BITBUCKET_TOKEN: ${{ secrets.GHORG_BITBUCKET_APP_PASSWORD }} | |
BITBUCKET_USERNAME: ${{ secrets.GHORG_BITBUCKET_USERNAME }} | |
- name: Run GitLab Cloud Integration Tests | |
run: scripts/gitlab_cloud_integration_tests.sh | |
env: | |
GITLAB_TOKEN: ${{ secrets.GHORG_GITLAB_TOKEN }} | |
build_and_test_windows: | |
environment: actions | |
name: Build and Test Windows | |
runs-on: windows-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.20 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Set configuration file | |
run: | | |
mkdir C:\Users\runneradmin\.config\ghorg | |
copy sample-conf.yaml C:\Users\runneradmin\.config\ghorg\conf.yaml | |
- name: Build | |
run: env GOOS=windows GOARCH=386 go build -v -o ghorg.exe . | |
- name: Test | |
run: go test -v ./... | |
- name: Run GitHub Integration Tests | |
run: scripts/windows_github_integration_tests.bat | |
env: | |
GITHUB_TOKEN: ${{ secrets.GHORG_GITHUB_TOKEN }} | |
- name: Run Bitbucket Integration Tests | |
run: scripts/bitbucket_cloud_integration_tests.sh | |
env: | |
BITBUCKET_TOKEN: ${{ secrets.GHORG_BITBUCKET_APP_PASSWORD }} | |
BITBUCKET_USERNAME: ${{ secrets.GHORG_BITBUCKET_USERNAME }} | |
- name: Run GitLab Cloud Integration Tests | |
run: scripts/gitlab_cloud_integration_tests.sh | |
env: | |
GITLAB_TOKEN: ${{ secrets.GHORG_GITLAB_TOKEN }} |