Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add tests
- Loading branch information
Yoann Chaudet
committed
Aug 18, 2022
1 parent
6a57e48
commit 6b32126
Showing
2 changed files
with
47 additions
and
0 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,37 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Generate artifacts | ||
run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh | ||
shell: bash | ||
|
||
- name: Upload artifacts | ||
uses: . | ||
with: | ||
path: artifact | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: github-pages | ||
path: artifact2 | ||
|
||
- name: Compare artifacts | ||
run: diff -qr artifact artifact2 | ||
shell: bash |
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,10 @@ | ||
#!/bin/sh | ||
|
||
# Create some files and directories in the current folder | ||
echo 'hello' > hello.txt | ||
mkdir subdir | ||
echo 'world' > subdir/world.txt | ||
|
||
# Add some symlinks (which we should dereference properly when archiving) | ||
ln -s subdir subdir-link | ||
ln -s hello.txt bonjour.txt |