chore(deps): bump postcss and vue-loader #121
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
| name: Nodejs Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/nodejs-fake-test.yml' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'src/**' | |
| - 'test/**' | |
| - 'tsconfig.json' | |
| - 'webpack.node-tests.js' | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| paths: | |
| - '.github/workflows/nodejs-fake-test.yml' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'src/**' | |
| - 'test/**' | |
| - 'tsconfig.json' | |
| - 'webpack.node-tests.js' | |
| concurrency: | |
| group: floccus-nodejs-tests-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| APP_NAME: bookmarks | |
| jobs: | |
| nodejs-tests: | |
| name: Node.js Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| # do not stop on another job's failure | |
| fail-fast: false | |
| matrix: | |
| node-version: [ 20.x ] | |
| npm-version: [ 10.x ] | |
| steps: | |
| - name: Checkout floccus | |
| uses: actions/checkout@v2 | |
| with: | |
| path: floccus | |
| - name: Set up node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Set up npm ${{ matrix.npm-version }} | |
| run: npm i -g npm@"${{ matrix.npm-version }}" | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: Install dependencies & build | |
| working-directory: floccus | |
| run: | | |
| npm ci | |
| - name: Run node.js tests | |
| working-directory: floccus | |
| run: | | |
| npm run test:node:fake | |
| nodejs-benchmark: | |
| name: Node.js Benchmark ${{ matrix.adapter }} ${{ matrix.seed != github.sha && '🌱' || ''}}${{ matrix.seed != github.sha && matrix.seed || ''}} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| # do not stop on another job's failure | |
| fail-fast: false | |
| matrix: | |
| node-version: [ 20.x ] | |
| npm-version: [ 10.x ] | |
| adapter: | |
| - fake | |
| - fake-nc-bookmarks | |
| seed: | |
| - ${{ github.sha }} | |
| - "3" | |
| - "6" | |
| - "0.5202964461460992" | |
| - "cfc00c4b69afec232e3b26244c2bc98ed6d547b6" | |
| - "12dd05da349df3d71c9e48e764f5d50ec2bbc88d" | |
| steps: | |
| - name: Checkout floccus | |
| uses: actions/checkout@v2 | |
| with: | |
| path: floccus | |
| - name: Set up node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Set up npm ${{ matrix.npm-version }} | |
| run: npm i -g npm@"${{ matrix.npm-version }}" | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: Install dependencies & build | |
| working-directory: floccus | |
| run: | | |
| npm ci | |
| - name: Run node.js tests | |
| working-directory: floccus | |
| env: | |
| FLOCCUS_TEST_SEED: ${{ matrix.seed }} | |
| FLOCCUS_TEST_ACCOUNTS: ${{ matrix.adapter }} | |
| run: | | |
| npm run test:node:fake:benchmark |