Skip to content

Commit

Permalink
worklows: Explicitly about Python version, node version, machine type
Browse files Browse the repository at this point in the history
- Also upgrade to more recent versions
  • Loading branch information
fordN committed Dec 8, 2023
1 parent bd19e7c commit 95c1f06
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:

jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js v20
uses: actions/[email protected]
with:
node-version: 20
- name: Build and Format
run: yarn
- name: Check Formatting
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
node-version: [16, 18]
node-version: [18, 19, 20]
system:
- os: ubuntu-22.04
runs-on: ${{ matrix.system.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/indexer-agent-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
packages: write

Expand All @@ -34,6 +34,14 @@ jobs:
registry: ghcr.io
username: ${{github.repository_owner}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up Node.js v20
uses: actions/[email protected]
with:
node-version: 20
- name: Build and push Indexer Agent image
id: docker_build
uses: docker/build-push-action@v2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/indexer-cli-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
packages: write

Expand All @@ -34,6 +34,14 @@ jobs:
registry: ghcr.io
username: ${{github.repository_owner}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up Node.js v20
uses: actions/[email protected]
with:
node-version: 20
- name: Build and push Indexer CLI image
id: docker_build
uses: docker/build-push-action@v2
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/indexer-service-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
packages: write

Expand All @@ -34,6 +34,14 @@ jobs:
registry: ghcr.io
username: ${{github.repository_owner}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up Node.js v20
uses: actions/[email protected]
with:
node-version: 20
- name: Build and push Indexer Service image
id: docker_build
uses: docker/build-push-action@v2
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-native-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ jobs:
# (https://github.com/bchr02/node-pre-gyp-github/issues/42)
fail-fast: false
matrix:
node_version: [16, 17, 18, 19, 20]
node_version: [18, 19, 20]
system:
- os: macos-latest
- os: macos-12
target: x86_64-apple-darwin
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
include:
- node_version: 18
- node_version: 17
system:
os: ubuntu-22.04
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
- node_version: 18
- node_version: 17
system:
os: macos-latest
os: macos-11
target: x86_64-apple-darwin
runs-on: ${{ matrix.system.os }}
steps:
Expand Down

0 comments on commit 95c1f06

Please sign in to comment.