From 47c9404cbc7a504d173a3c6b2bcb65e1b81580f8 Mon Sep 17 00:00:00 2001 From: Konboi Date: Tue, 19 Mar 2024 16:07:09 +0900 Subject: [PATCH] use ref --- .github/workflows/go.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cab0301..4d66193 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,16 +19,17 @@ env: jobs: tests: runs-on: ubuntu-latest - defaults: - run: - working-directory: go steps: - uses: actions/checkout@v2 + with: + ref: master + fetch-depth: 0 - uses: actions/checkout@v2 with: repository: launchableinc/cli ref: main path: cli + fetch-depth: 0 - uses: actions/setup-python@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1 @@ -48,9 +49,10 @@ jobs: go install github.com/jstemmer/go-junit-report@latest - run: "launchable verify" - run: "ls -a .." - - run: "ls -a " + - run: "ls -a go" - name: Record commits and build - run: 'launchable record build --name "$GITHUB_RUN_ID" --source .. --source=cli=../cli' # care for working-directory path + run: 'launchable record build --name "$GITHUB_RUN_ID" --source . --source=cli=./cli' # care for working-directory path + - run: "cd go" - name: Subset run: go test -list="Test|Example" ./... | launchable subset --confidence 80% go-test > launchable-subset.txt - name: Test