From 12f91eb35b1f8cf0bb86a0bd30634cd84bb04a6e Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:03:27 -0600 Subject: [PATCH 1/8] add workflow test --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..364c28a2d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: test +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.13.x + - name: Install dependencies + run: | + apt-get update && + apt-get install \ + libxml2-utils \ + python3-venv \ + xsltproc + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup + run: make setup + - name: Test + run: make check From 53410f15b6760e4341112ea27735d60ef3d4914c Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:05:33 -0600 Subject: [PATCH 2/8] sudo try again --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 364c28a2d0..ba23fe52e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,8 @@ jobs: go-version: 1.13.x - name: Install dependencies run: | - apt-get update && - apt-get install \ + sudo apt-get update && + sudo apt-get install \ libxml2-utils \ python3-venv \ xsltproc From e19d2b82b42bbdd18049883643edc21ed7a8e9ba Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:08:43 -0600 Subject: [PATCH 3/8] fetch the tags --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba23fe52e9..71a6c7511c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,8 @@ jobs: xsltproc - name: Checkout code uses: actions/checkout@v2 + run: | + git fetch --tags --all - name: Setup run: make setup - name: Test From d61070c916d4b32d29f7f341d1de0137ed48c1cc Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:09:45 -0600 Subject: [PATCH 4/8] understanding how this works --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71a6c7511c..c310fd7ef3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: xsltproc - name: Checkout code uses: actions/checkout@v2 + - name: Fetch tags run: | git fetch --tags --all - name: Setup From dd5844ad8954f8c1c2804b91c2ec6240383645da Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:14:06 -0600 Subject: [PATCH 5/8] adjusting fetch options --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c310fd7ef3..04425b46ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v2 - name: Fetch tags run: | - git fetch --tags --all + git fetch --prune --unshallow --tags - name: Setup run: make setup - name: Test From f3b4abeaa3cf39e8c616b8d0743223d3cdd1cd61 Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:17:09 -0600 Subject: [PATCH 6/8] tweaking --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04425b46ae..04c4a03bf7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: go-version: 1.13.x - name: Install dependencies run: | - sudo apt-get update && + sudo apt-get update sudo apt-get install \ libxml2-utils \ python3-venv \ @@ -20,6 +20,7 @@ jobs: - name: Fetch tags run: | git fetch --prune --unshallow --tags + git tag --list - name: Setup run: make setup - name: Test From 1a482746f4f6700533d37a9f2b0216426b0dd229 Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Tue, 26 Jan 2021 15:29:15 -0600 Subject: [PATCH 7/8] housekeeping --- .github/workflows/test.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04c4a03bf7..6825cfd607 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,26 +1,23 @@ -name: test +name: Tests on: [push, pull_request] jobs: - test: + tests: runs-on: ubuntu-latest + name: Unit Tests steps: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.13.x - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install \ - libxml2-utils \ - python3-venv \ - xsltproc + go-version: '1.13.x' + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' - name: Checkout code uses: actions/checkout@v2 - name: Fetch tags run: | git fetch --prune --unshallow --tags - git tag --list - name: Setup run: make setup - name: Test From 103bb69c6e366393822041482a2d1b6e26302af3 Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Wed, 27 Jan 2021 10:58:20 -0600 Subject: [PATCH 8/8] test fetch depth --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6825cfd607..53db227b13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,9 +15,8 @@ jobs: python-version: '3.x' - name: Checkout code uses: actions/checkout@v2 - - name: Fetch tags - run: | - git fetch --prune --unshallow --tags + with: + fetch-depth: 0 - name: Setup run: make setup - name: Test