Fix automatic provision of gh-token #72
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
name: 'Test Action' | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
testAction: | |
strategy: | |
matrix: | |
# Right now macos-13 is amd64 while macos-14 is aarch64 (M1) | |
os: [ubuntu-latest, macos-13, macos-14, windows-latest] | |
go-version: [1.17, 1.21.0] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create test go.mod file | |
run: | | |
echo "module github.com/Upgrade-Go-Action" >> go.mod | |
echo "go ${{ matrix.go-version }}" >> go.mod | |
cat go.mod | |
- name: Test Local Action | |
uses: ./ | |
with: | |
dry-run: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check go.mod file | |
run: cat go.mod |