Skip to content

Commit 6c82c50

Browse files
updates
1 parent 79e99d3 commit 6c82c50

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
- name: Prepare
19+
run: rm -f "website/index.html" && cp "website/test.md" "website/index.md" && rm -f "website/test.md"
20+
shell: bash
1821
- name: Generate with _just
1922
uses: js-just/_just@main
2023
with:

tests/compress.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222

2323
#!/bin/bash
2424
mkdir -p test
25-
CONFIG=$(cat "tests/compress.js")
26-
HTML=$(cat "website/index.html")
2725
rm -f "just.config.js"
2826
rm -r "website"
29-
echo "$CONFIG" > "just.config.js"
30-
echo "$HTML" > "test/index.html"
27+
cp "tests/compress.js" "just.config.js"
28+
cp "website/index.html" "test/index.html"

tests/docs.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222

2323
#!/bin/bash
2424
mkdir -p test
25-
CONFIG=$(cat "tests/docs.js")
26-
MARKDOWN=$(cat "tests/docs.md")
2725
rm -f "just.config.js"
2826
rm -r "website"
29-
echo "$CONFIG" > "just.config.js"
30-
echo "$MARKDOWN" > "test/index.md"
27+
cp "tests/docs.js" "just.config.js"
28+
cp "tests/docs.md" "test/index.md"

tests/redirect.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#!/bin/bash
2424
mkdir -p test
25-
CONFIG=$(cat "tests/redirect.js")
2625
rm -f "just.config.js"
2726
rm -r "website"
28-
echo "$CONFIG" > "just.config.js"
27+
cp "tests/redirect.js" "just.config.js"

0 commit comments

Comments
 (0)