Skip to content

Added initial github workflow #4

Added initial github workflow

Added initial github workflow #4

Workflow file for this run

name: Highcharts Utils
on:
push:
branches: [ '*' ]
pull_request:
branches: [ 'master' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test_with_hc:
runs-on: ubuntu-latest
steps:
- name: Checkout utils
uses: actions/checkout@v4
with:
path: utils
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'
cache-dependency-path: ./utils/package-lock.json
- run: npm i
working-directory: ./utils
- name: Checkout highcharts
uses: actions/checkout@v4
with:
path: highcharts
repository: highcharts/highcharts
- name: Install and build
working-directory: ./highcharts
run: npm i
- name: Generate code
working-directory: ./highcharts
run: npx gulp scripts
- run: node server.js --localonly &
working-directory: ./utils
- name: Install Hurl
working-directory: ./utils
run: |
INSTALL_DIR=/usr/bin
VERSION=4.1.0
curl --silent --location https://github.com/Orange-OpenSource/hurl/releases/download/$VERSION/hurl-$VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C $INSTALL_DIR
export PATH=$INSTALL_DIR/hurl-$VERSION:$PATH
hurl --test test.hurl