diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7085912c..1d7ae4d0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,8 +2,13 @@ name: Build and Test on: push: + branches: + - main + - 1.x pull_request: - types: [opened, reopened, synchronize] + branches: + - main + - 1.x jobs: build: @@ -14,10 +19,13 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@v3.1.1 + - uses: actions/setup-node@v7 + with: + node-version: lts/* + cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Build run: npm run build @@ -30,16 +38,19 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-node@v3.1.1 + - uses: actions/setup-node@v7 + with: + node-version: lts/* + cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Test run: npm run test - name: Archive test artifacst - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test images path: | diff --git a/test/e2e/graphs.test.js b/test/e2e/graphs.test.js index 3eefca5a..321e0534 100644 --- a/test/e2e/graphs.test.js +++ b/test/e2e/graphs.test.js @@ -14,7 +14,10 @@ describe('Function Plot', () => { let page beforeAll(async () => { - browser = await puppeteer.launch({ headless: 'new' }) + browser = await puppeteer.launch({ + headless: 'new', + args: ['--no-sandbox', '--disable-setuid-sandbox'] + }) page = await browser.newPage() await page.setViewport({ width: 1000,