diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 2154a933..3465c782 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -10,25 +10,25 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: '12.x' + node-version: '19.x' - run: npm ci - run: npm run build python-test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Test with unittest @@ -40,12 +40,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ '0.12', '4', '6', '8', '10', '12', '14' ] # Major releases as described in https://nodejs.org/en/download/releases/ + node: [ '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19' ] # Major releases as described in https://nodejs.org/en/download/releases/ name: Node ${{ matrix.node }} sample steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - run: npm install @@ -54,15 +54,15 @@ jobs: publish: needs: [build, python-test, js-test] if: ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event_name == 'schedule' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: '12.x' + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '19.x' registry-url: 'https://registry.npmjs.org' - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.8 - run: npm ci