-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
270 additions
and
75 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,27 @@ | ||
# Inspired by https://github.com/AdityaGarg8/remove-unwanted-software | ||
# to free up disk space. Currently removes Dotnet, Android and Haskell. | ||
name: Remove unwanted software | ||
description: Default GitHub runners come with a lot of unnecessary software | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Disk space report before modification | ||
shell: bash | ||
run: | | ||
echo "==> Available space before cleanup" | ||
echo | ||
df -h | ||
- name: Maximize build disk space | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /usr/local/.ghcup | ||
- name: Disk space report after modification | ||
shell: bash | ||
run: | | ||
echo "==> Available space after cleanup" | ||
echo | ||
df -h |
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
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,19 @@ | ||
const fs = require("fs-extra"); | ||
const glob = require("glob"); | ||
|
||
const ROOT_ALLURE_RESULTS = "./allure-results"; // Target directory in the root | ||
|
||
fs.ensureDirSync(ROOT_ALLURE_RESULTS); | ||
|
||
const directories = glob.sync("packages/**/allure-results"); | ||
|
||
directories.forEach((dir) => { | ||
const files = fs.readdirSync(dir); | ||
files.forEach((file) => { | ||
const sourcePath = `${dir}/${file}`; | ||
const targetPath = `${ROOT_ALLURE_RESULTS}/${file}`; | ||
fs.copyFileSync(sourcePath, targetPath); | ||
}); | ||
}); | ||
|
||
console.log("All allure-results directories merged successfully!"); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"reporterEnabled": "spec, allure-mocha", | ||
"allureMochaReporter": { | ||
"outputDir": "allure-results" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporterEnabled": "spec, allure-mocha", | ||
"allureMochaReporter": { | ||
"outputDir": "allure-results" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporterEnabled": "spec, allure-mocha", | ||
"allureMochaReporter": { | ||
"outputDir": "allure-results" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporterEnabled": "spec, allure-mocha", | ||
"allureMochaReporter": { | ||
"outputDir": "allure-results" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"reporterEnabled": "spec, allure-mocha", | ||
"allureMochaReporter": { | ||
"outputDir": "allure-results" | ||
} | ||
} |
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
Oops, something went wrong.