chore(deps-dev): bump @adobe/css-tools from 4.3.1 to 4.3.2 #53
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
name: Node CI - pull request | |
on: | |
workflow_dispatch: | |
pull_request: | |
env: | |
CI: true | |
NODE_ENV: development | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Setup kernel for react native, increase watchers | |
# run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
# used to centralize the node version across workflows | |
# refs https://arinco.com.au/blog/github-actions-share-environment-variables-across-workflows | |
# refs https://github.com/marketplace/actions/set-environment-variables | |
- name: Set Environment Variables | |
uses: tw3lveparsecs/[email protected] | |
with: | |
envFilePath: ./envvars.for.actions | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Attempt to restore the cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
./node_modules | |
~/.cache/Cypress | |
key: ${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ hashFiles('**/package-lock.json') }} | |
# - name: install wine | |
# run: | | |
# sudo dpkg --add-architecture i386 | |
# sudo apt-get update | |
# sudo apt-get install -f wine-stable wine32 | |
- name: install | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install --legacy-peer-deps | |
test: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Environment Variables | |
uses: tw3lveparsecs/[email protected] | |
with: | |
envFilePath: ./envvars.for.actions | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Attempt to restore the cache | |
uses: actions/cache@v3 | |
id: cache_restore | |
with: | |
path: ./node_modules | |
key: ${{ hashFiles('**/package-lock.json') }} | |
- name: coverage | |
env: | |
DISPLAY: ':99.0' | |
run: npm run test | |
#- name: memory leak detection | |
# run: npm run test -- --detectLeaks | |
acceptance: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Environment Variables | |
uses: tw3lveparsecs/[email protected] | |
with: | |
envFilePath: ./envvars.for.actions | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Attempt to restore the cache | |
uses: actions/cache@v3 | |
id: cache_restore | |
with: | |
path: | | |
./node_modules | |
~/.cache/Cypress | |
key: ${{ hashFiles('**/package-lock.json') }} | |
- name: export display | |
run: | | |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
echo ">>> Started xvfb" | |
- name: build application | |
run: npm run build | |
- name: Run cypress (acceptance tests) | |
uses: cypress-io/github-action@v4 | |
env: | |
CYPRESS_BASE_URL: 'http://localhost:3000' | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
with: | |
record: true | |
wait-on: 'http://localhost:3000' | |
start: npm run serve | |
browser: chrome | |
headed: true |