Skip to content

update deps

update deps #106

Workflow file for this run

name: build
on:
- push
- pull_request
- workflow_dispatch
jobs:
createNpmPackage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn add shelljs
- run: yarn run create:npm-package
- name: Upload template
uses: actions/upload-artifact@v1
with:
name: nikestore-finder-reactjs
path: .nikestore-finder-reactjs
createAndTestCRA:
needs: createNpmPackage
runs-on: ubuntu-latest
steps:
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Download template
uses: actions/download-artifact@v1
with:
name: nikestore-finder-reactjs
path: ../nikestore-finder-reactjs # Put into the upper folder. create-react-app wants the current directory empty
- name: Create CRA from downloaded template
run: yarn create react-app --template file:../nikestore-finder-reactjs .
- run: yarn run build
- run: yarn run test:generators
- run: yarn run lint
- run: yarn run checkTs
- run: yarn run test
- run: yarn run cleanAndSetup
- run: yarn run build
- run: yarn run test:generators
- run: yarn run lint
- run: yarn run checkTs
createCRAWithMultipleNodeVersions:
needs: createNpmPackage
strategy:
matrix:
node-version: [18.x, 20.x]
runs-on: ubuntu-latest
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Download template
uses: actions/download-artifact@v1
with:
name: nikestore-finder-reactjs
path: ../nikestore-finder-reactjs # Put into the upper folder. create-react-app wants the current directory empty
- name: Create CRA from downloaded template
run: yarn create react-app --template file:../nikestore-finder-reactjs .
- run: yarn run build
- run: yarn run test