Add to CI

This commit is contained in:
HarelM
2023-12-16 20:44:52 +02:00
parent abfed99738
commit f7de7ff3ba

View File

@@ -34,7 +34,7 @@ jobs:
os: [ubuntu-latest] os: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- run: docker build -t docker.pkg.github.com/maputnik/editor/editor:master . - run: docker build -t docker.pkg.github.com/maputnik/editor/editor:master .
# build the editor # build the editor
@@ -51,7 +51,7 @@ jobs:
node-version: [18.x] node-version: [18.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
@@ -77,7 +77,7 @@ jobs:
node-version: [18.x] node-version: [18.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
@@ -115,7 +115,7 @@ jobs:
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v2 uses: actions/checkout@v4
with: with:
repository: maputnik/desktop repository: maputnik/desktop
ref: master ref: master
@@ -141,7 +141,20 @@ jobs:
with: with:
name: maputnik-windows name: maputnik-windows
path: ./src/github.com/maputnik/desktop/bin/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 # build and test the editor
test_selenium_standalone: test_selenium_standalone:
name: "test/standalone-${{ matrix.browser }} (${{ matrix.os }})" name: "test/standalone-${{ matrix.browser }} (${{ matrix.os }})"
@@ -168,7 +181,7 @@ jobs:
options: --shm-size=2gb options: --shm-size=2gb
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.npm path: ~/.npm