From f7de7ff3ba7c288141df8bc3ebad648df719e331 Mon Sep 17 00:00:00 2001 From: HarelM Date: Sat, 16 Dec 2023 20:44:52 +0200 Subject: [PATCH] Add to CI --- .github/workflows/ci.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd42f154..ff2c5f81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: os: [ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:master . # build the editor @@ -51,7 +51,7 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} @@ -77,7 +77,7 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} @@ -115,7 +115,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: maputnik/desktop ref: master @@ -141,7 +141,20 @@ jobs: with: name: maputnik-windows path: ./src/github.com/maputnik/desktop/bin/windows/ - + + cypress-run: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + # Install NPM dependencies, cache them correctly + # and run all Cypress tests + - run: npm ci + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + build: npm run build + start: npm run start # build and test the editor test_selenium_standalone: name: "test/standalone-${{ matrix.browser }} (${{ matrix.os }})" @@ -168,7 +181,7 @@ jobs: options: --shm-size=2gb steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/cache@v1 with: path: ~/.npm