Merge pull request #60 from xianshenglu:feat_react_hook #1
This file contains hidden or 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: React-Vite-Master | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'demo/react-vite/**' | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
strategy: | |
matrix: | |
node-version: [22.x] | |
defaults: | |
run: | |
working-directory: demo/react-vite | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: npm ci | |
# - name: Lint | |
# run: npm run lint | |
# - name: Unit Test | |
# run: npm run test | |
# - name: EndToEnd Test | |
# run: npm run e2e:headless | |
- name: Build | |
run: npm run build |