52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: mac-x64-test-1
|
|
|
|
on:
|
|
push:
|
|
branches: [ build, test, test-only, test1 ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: macos-15-intel
|
|
environment: build
|
|
if: ${{ !contains(github.event.head_commit.message, '[skip test]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip mac]') && !contains(github.event.head_commit.message, '[skip test1]') }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js 24.x
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24.15.0
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
# before_install:
|
|
- run: pip install setuptools
|
|
- run: npm config set legacy-peer-deps true
|
|
- run: npm install -g yarn
|
|
- run: npm i
|
|
- run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm i -D -E playwright@1.49.1 && npm i -D -E @playwright/test@1.49.1
|
|
|
|
# script:
|
|
- run: npm run b
|
|
|
|
- name: Run pb
|
|
run: npm run pb
|
|
- name: test
|
|
uses: GabrielBB/xvfb-action@v1
|
|
with:
|
|
run: npm run test1
|
|
env:
|
|
NODE_TEST: 1
|
|
TEST_HOST: ${{ secrets.TEST_HOST }}
|
|
TEST_USER: ${{ secrets.TEST_USER_1 }}
|
|
TEST_PASS: ${{ secrets.TEST_PASS_1 }}
|
|
GIST_TOKEN: ${{ secrets.GIST_TOKEN }}
|
|
GIST_ID: ${{ secrets.GIST_ID }}
|
|
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
|
|
GITEE_ID: ${{ secrets.GITEE_ID }}
|
|
|