-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 1.76 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: release-version
on:
push:
tags:
- v*.*.*
env:
CHROMEDRIVER_FILEPATH: "/usr/local/share/chrome_driver/chromedriver"
jobs:
release-version:
name: release-version
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: "0"
- run: git fetch origin +refs/tags/*:refs/tags/*
- name: Use Node.js 16
uses: actions/[email protected]
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install prerequisites
run: sudo apt-get install build-essential python libxtst-dev libpng++-dev libxt-dev libxinerama-dev tesseract-ocr tesseract-ocr-deu tesseract-ocr-eng xvfb
shell: bash
- name: Set SAKULI_VERSION according to tag
run: echo "SAKULI_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- run: npm install
- run: npx lerna run build
- run: npm t -- --runInBand --ci --bail --forceExit
- name: execute E2E tests
run: |
cd ./packages/e2e
xvfb-run --server-args="-screen 0, 1920x1080x24" npm run test:e2e
shell: bash
env:
LOG_MODE: ci
- name: save error screenshots on failure
if: ${{ failure() }}
uses: actions/[email protected]
with:
name: error-screenshots
path: |
./packages/e2e/e2e-suite/_logs/_screenshots
- run: npx lerna run build
- run: npm run lerna:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: trigger docker image builds
uses: mvasigh/[email protected]
with:
token: ${{ secrets.REPOSITORY_TOKEN }}
repo: sakuli-docker
owner: sakuli
event_type: build-latest