mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-07 16:27:27 +00:00
More testing
This commit is contained in:
parent
951faab86b
commit
1f6356c0db
2 changed files with 3 additions and 3 deletions
3
.github/workflows/selftest.yml
vendored
3
.github/workflows/selftest.yml
vendored
|
|
@ -1,8 +1,9 @@
|
|||
on: [push]
|
||||
name: Self-test
|
||||
jobs:
|
||||
self-test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Self-test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install gotestfmt
|
||||
uses: haveyoudebuggedit/gotestfmt-action@main
|
||||
|
|
|
|||
3
index.js
3
index.js
|
|
@ -14,9 +14,8 @@ async function downloadRelease(octokit, org, repo, release) {
|
|||
if (asset.name.endsWith("_linux_amd64.tar.gz")) {
|
||||
console.log("Found Linux binary named " + asset.name + " at " + asset.browser_download_url + " , attempting download...")
|
||||
const response = await octokit.request("GET " + asset.browser_download_url)
|
||||
console.log(response)
|
||||
console.log("Writing gotestfmt to ./tmp/gotestfmt.tar.gz...")
|
||||
fs.writeFileSync("/tmp/gotestfmt.tar.gz", response.data)
|
||||
fs.writeFileSync("/tmp/gotestfmt.tar.gz", response.data, {encoding: null})
|
||||
console.log("Creating /usr/local/lib/gotestfmt directory...")
|
||||
execSync("sudo mkdir -p /usr/local/lib/gotestfmt")
|
||||
console.log("Unpacking tar file...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue