Bump actions/checkout from 3 to 4 #14
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
name: "test converting directory" | |
on: | |
pull_request: | |
jobs: | |
test-convert-directory-action: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: convert-dir | |
with: | |
kittycad-token: ${{ secrets.KITTYCAD_API_TOKEN }} | |
input-directory: test-files | |
output-directory: test-files-out | |
conversion-type: fbx | |
- name: check-files-converted | |
run: | | |
ls test-files-out | |
all_exist () { | |
local filename | |
for filename; do | |
test -f "$filename" && continue | |
echo "$0: $filename does not exist - aborting" >&2 | |
return 1 | |
done | |
return 0 | |
} | |
all_exist test-files-out/test-obj.fbx test-files-out/test-stl.fbx && echo "$0: all files exist" >&2 | |
shell: bash |