Prepare the release v0.15.2 #725
Workflow file for this run
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: JavaScript Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| javascript-tests: | |
| name: Run JavaScript Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [24] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install Latest Firefox | |
| run: | | |
| sudo apt-get purge -y firefox | |
| LATEST_VERSION=$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json | jq -r '.LATEST_FIREFOX_VERSION') | |
| echo "Latest Firefox version is $LATEST_VERSION" | |
| wget "https://ftp.mozilla.org/pub/firefox/releases/${LATEST_VERSION}/linux-x86_64/en-US/firefox-${LATEST_VERSION}.tar.xz" -O firefox.tar.xz | |
| tar -xJf firefox.tar.xz | |
| sudo mv firefox /opt/firefox | |
| sudo ln -sf /opt/firefox/firefox /usr/bin/firefox | |
| - name: Install Required System Packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxmlsec1-dev ubuntu-restricted-extras xvfb | |
| - name: Install npm dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Run tests | |
| run: npm run test-ci |