Update unit-tests.yaml #87
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: Unit Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| branches: | |
| - '**' | |
| pull_request: | |
| types: [opened, reopened] | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| - ubuntu-22.04 | |
| - ubuntu-20.04 | |
| - ubuntu-18.04 | |
| node: | |
| - '22.x' | |
| - '18.x' | |
| exclude: | |
| - os: ubuntu-24.04 | |
| node: '22.x' | |
| - os: ubuntu-22.04 | |
| node: '18.x' | |
| - os: ubuntu-20.04 | |
| node: '18.x' | |
| - os: ubuntu-18.04 | |
| node: '18.x' | |
| fail-fast: false | |
| name: node-${{ matrix.node }}/${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: CPAN Cache | |
| id: cpan-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: thirdparty | |
| key: ${{ matrix.os }}-cpan-${{ matrix.perl }}-${{ hashFiles('**/cpanfile') }} | |
| - name: Node Cache | |
| id: node-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: frontend/node_modules | |
| key: ${{ matrix.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-node-${{ matrix.node }}- | |
| - name: Install OS dependencies | |
| run: sudo apt install libqrencode-dev pkg-config gettext | |
| - name: Bootstrap | |
| run: ./bootstrap | |
| - name: Configure | |
| run: ./configure --prefix=$HOME/test-install | |
| - name: Make | |
| run: make | |
| - name: Test | |
| run: | | |
| cp etc/wgwrangler.dist.yaml etc/wgwrangler.yaml | |
| make test | |
| - name: Cache Prep | |
| run: | | |
| rm thirdparty/Makefile* thirdparty/cpan*snapshot |