diff --git a/.github/workflows/global.yml b/.github/workflows/global.yml new file mode 100644 index 0000000..8c59bd7 --- /dev/null +++ b/.github/workflows/global.yml @@ -0,0 +1,41 @@ +name: Influx using sitespeed.io +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + - name: Install dependencies + run: npm install ci + - name: Install sitespeed.io + run: | + npm install sitespeed.io -g + - name: Install Chrome + run: | + wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - + sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' + sudo apt-get update + sudo apt-get --only-upgrade install google-chrome-stable + google-chrome --version + - name: Setup environment + run: docker compose -f test/docker/docker-compose.yml up -d + - name: Browser versions + run: | + google-chrome --version + - name: Info + run: | + ls -la + - name: Run test with Influx 1.8 + run: sitespeed.io https://www.sitespeed.io -n 1 --influxdb.host 127.0.0.1 --xvfb --resultBaseUrl https://result.sitespeed.io --influxdb.annotationScreenshot=true --plugins.add ./lib/index.js + - name: Run test with Influx 2.6.1 + run: sitespeed.io https://www.sitespeed.io -n 1 --influxdb.host 127.0.0.1 --influxdb.port 8087 --influxdb.version 2 --influxdb.organisation sitespeed --influxdb.token sitespeed --xvfb --resultBaseUrl https://result.sitespeed.io --influxdb.annotationScreenshot=true --plugins.add ./lib/index.js \ No newline at end of file diff --git a/.github/workflows/linux.yml b/.github/workflows/local.yml similarity index 89% rename from .github/workflows/linux.yml rename to .github/workflows/local.yml index c5238c1..8a5d897 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/local.yml @@ -1,4 +1,4 @@ -name: Influx test on Linux +name: Influx using main branch sitespeed.io on: push: branches: @@ -29,11 +29,6 @@ jobs: sudo apt-get update sudo apt-get --only-upgrade install google-chrome-stable google-chrome --version - - name: Install dependencies - run: | - python -m pip install --upgrade --user pip - python -m pip install --user scipy - python -m pip show scipy - name: Setup environment run: docker compose -f test/docker/docker-compose.yml up -d - name: Browser versions