-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GHA Migration #103
Merged
Merged
GHA Migration #103
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3666f5c
remove circle config directory
claire-labry f389813
migrate to gha
claire-labry 10a0ac4
PR feedback
claire-labry e033ba8
fix install gotestsum for 1.15.3
claire-labry daeb99e
whoops forgot to wrap statement
claire-labry 07809e1
Update .github/workflows/go-tests.yml
claire-labry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [1.19] | ||
go-version: [ 1.15.3, 1.19 ] | ||
|
||
steps: | ||
- name: Setup go | ||
|
@@ -24,7 +24,7 @@ jobs: | |
|
||
- name: Create test directory | ||
run: | | ||
mkdir -p ${{env.TEST_RESULTS}} | ||
mkdir -p ${{ env.TEST_RESULTS }} | ||
|
||
- name: Download go modules | ||
run: go mod download | ||
|
@@ -33,7 +33,6 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
|
@@ -49,9 +48,14 @@ jobs: | |
echo "$files" | ||
exit 1 | ||
fi | ||
|
||
|
||
# Install gotestsum with go get for 1.15.3; otherwise default to go install | ||
- name: Install gotestsum | ||
run: go install gotest.tools/[email protected] | ||
run: | | ||
if [ ${{ matrix.go-version }} == 1.15.3 ]; then | ||
go get gotest.tools/[email protected]; else | ||
go install gotest.tools/[email protected] | ||
fi | ||
claire-labry marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Run go tests | ||
run: | | ||
|
@@ -63,4 +67,4 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Test Results | ||
path: ${{env.TEST_RESULTS}} | ||
path: ${{ env.TEST_RESULTS }} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samsalisbury could I get a re-review on the
install gotestsum
job? The job for 1.15.3 had failed when I pushed up the feedback. I had to wrap an if/else statement as1.15.3
requiresgo get
to install gotestsum but newer Go versions use thego install
convention. The checks show that everything is being downloaded properly & passing but wanted to make sure the logic here makes sense?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic looks good to me. I made a suggestion, but really do make your own mind up on whether you like it! I think your version might be more popular :) Thanks.