-
Notifications
You must be signed in to change notification settings - Fork 4
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 #4 from Jtalk/working-dir-support-test
Support for the working-directory input + action check
- Loading branch information
Showing
6 changed files
with
44 additions
and
2 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,8 @@ | ||
name := "test-project" | ||
version := "1.0" | ||
scalaVersion := "2.12.11" | ||
|
||
lazy val userdir = taskKey[Unit]("Print user.dir proprety") | ||
userdir := { // sbt userdir is going to crash if not in this directory | ||
println(System.getProperty("user.dir")) | ||
} |
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,22 @@ | ||
name: Check action | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check-baseline: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Verify sbt command gets invoked in the specified directory | ||
uses: ./ | ||
with: | ||
command: sbt name | ||
check-working-dir: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Verify sbt command gets invoked in the specified directory | ||
uses: ./ | ||
with: | ||
command: sbt userdir | ||
working-directory: .github/data |
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ name: Run test and upload container | |
uses: matankdr/[email protected] | ||
with: | ||
command: sbt test docker:publish publish | ||
working-directory: subproject/ | ||
packages-resolver: "ivy creds" | ||
docker-login-username: "my username" | ||
docker-login-password: "my password" | ||
|
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