use abs path #65
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: Tests | |
on: [push, pull_request] | |
env: | |
CHROME_BUILD_NUMBER: 117.0.5938.149 | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
# os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Windows fix. See https://github.com/actions/checkout/issues/226 | |
- run: git config --global core.autocrlf false | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: yarn cache | |
uses: actions/cache@v3 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Cache browser | |
id: cache-browser | |
uses: actions/cache@v3 | |
with: | |
path: browser | |
key: ${{ runner.os }}-browser-${{ env.CHROME_BUILD_NUMBER }} | |
- uses: FedericoCarboni/setup-ffmpeg@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: yarn | |
- run: npx @puppeteer/browsers install chrome@${{ env.CHROME_BUILD_NUMBER }} --path ${{ github.workspace }}/browser | |
- run: yarn workspace reactive-video build | |
- run: yarn tsc | |
- run: yarn test | |
- run: yarn lint | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: artifact | |
path: | | |
reactive-video-assets/test-output/ | |
reactive-video-assets/test-image-snapshots/__diff_output__/ |