diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eac0a78..70a8763 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,9 +5,11 @@ on: branches: [master] paths: - "go/**" + - ".github/workflows/go.yml" pull_request: paths: - "go/**" + - ".github/workflows/go.yml" env: LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN_GO }} @@ -22,6 +24,11 @@ jobs: working-directory: go steps: - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: launchableinc/cli + ref: main + path: cli - uses: actions/setup-python@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 @@ -40,8 +47,10 @@ jobs: run: | go install github.com/jstemmer/go-junit-report@latest - run: "launchable verify" + - run: "ls .." + - run: "ls" - name: Record commits and build - run: 'launchable record build --name "$GITHUB_RUN_ID" --source ..' # care for working-directory path + run: 'launchable record build --name "$GITHUB_RUN_ID" --source .. --source=cli=./cli' # care for working-directory path - name: Subset run: go test -list="Test|Example" ./... | launchable subset --confidence 80% go-test > launchable-subset.txt - name: Test