Update dependency svelte to v4 #2283
Workflow file for this run
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
# GitHub Actions | |
# https://help.github.com/en/articles/configuring-a-workflow | |
name: Unit test | |
on: push | |
jobs: | |
dependencies: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# install a specific version of Node using | |
# https://github.com/actions/setup-node | |
- name: Use Node.js v18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# just so we learn about available environment variables GitHub provides | |
- name: Print env variables | |
run: | | |
npm i -g @bahmutov/print-env | |
print-env GITHUB | |
- name: Cache dependencies | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./node_modules | |
/home/runner/.cache/Cypress | |
./packages/test-dialogic-react/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
npm ci --ignore-scripts | |
./node_modules/cypress/bin/cypress install | |
test_dialogic: | |
runs-on: ubuntu-20.04 | |
needs: dependencies | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: | | |
./node_modules | |
/home/runner/.cache/Cypress | |
./packages/test-dialogic-react/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Dialogic core | |
working-directory: ./packages/test-dialogic | |
run: npm run test | |
test_dialogic_mithril: | |
runs-on: ubuntu-20.04 | |
needs: dependencies | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: | | |
./node_modules | |
/home/runner/.cache/Cypress | |
./packages/test-dialogic-react/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Mithril | |
working-directory: packages/test-dialogic-mithril | |
run: npm run test | |
test_dialogic_react: | |
runs-on: ubuntu-20.04 | |
needs: dependencies | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: | | |
./node_modules | |
/home/runner/.cache/Cypress | |
./packages/test-dialogic-react/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: React | |
working-directory: packages/test-dialogic-react | |
run: npm run test | |
test_dialogic_svelte: | |
runs-on: ubuntu-20.04 | |
needs: dependencies | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: | | |
./node_modules | |
/home/runner/.cache/Cypress | |
./packages/test-dialogic-react/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Svelte | |
working-directory: packages/test-dialogic-svelte | |
run: npm run test | |