Use major refs for official GitHub Actions
Follow the repository convention that official action sources, including actions/* and docker/*, should track major-version refs instead of exact patch tags. Third-party actions remain pinned as before. User-level behavior is unchanged; this only changes workflow action reference policy.
This commit is contained in:
+16
-16
@@ -24,7 +24,7 @@ jobs:
|
||||
compile_and_lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- name: Set up cargo cache
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
- run: cargo test --features odbc-static
|
||||
- name: Upload Linux binary
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage-linux-debug
|
||||
path: "target/debug/sqlpage"
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
container: oracle
|
||||
db_url: "Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!"
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
env:
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
windows_test:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
env:
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
- name: Upload Windows binary
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage-windows-debug
|
||||
path: "target/debug/sqlpage.exe"
|
||||
@@ -137,7 +137,7 @@ jobs:
|
||||
variant: duckdb
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
uses: actions/checkout@v6
|
||||
- id: suffix
|
||||
name: Cache name suffix
|
||||
run: |
|
||||
@@ -148,23 +148,23 @@ jobs:
|
||||
echo "suffix=${suffix}" >> "$GITHUB_OUTPUT"
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6.0.0
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
flavor: suffix=${{ steps.suffix.outputs.suffix }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4.0.0
|
||||
uses: docker/setup-qemu-action@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4.0.0
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v4.1.0
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ env.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push by digest
|
||||
id: build
|
||||
uses: docker/build-push-action@v7.1.0
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
platforms: ${{ matrix.platform }}
|
||||
@@ -186,7 +186,7 @@ jobs:
|
||||
digest="${{ steps.build.outputs.digest }}"
|
||||
touch "/tmp/digests/${digest#sha256:}"
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
name: digests-${{ matrix.variant }}${{ steps.suffix.outputs.suffix }}
|
||||
@@ -206,7 +206,7 @@ jobs:
|
||||
- duckdb
|
||||
steps:
|
||||
- name: Download digests
|
||||
uses: actions/download-artifact@v8.0.1
|
||||
uses: actions/download-artifact@v8
|
||||
env:
|
||||
NODE_OPTIONS: --no-deprecation
|
||||
with:
|
||||
@@ -214,15 +214,15 @@ jobs:
|
||||
merge-multiple: true
|
||||
path: /tmp/digests
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4.0.0
|
||||
uses: docker/setup-buildx-action@v4
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6.0.0
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: ${{ env.REGISTRY_IMAGE }}
|
||||
flavor: suffix=${{ matrix.variant != 'minimal' && format('-{0}', matrix.variant) || '' }}
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v4.1.0
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
username: ${{ env.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cloning repo
|
||||
uses: actions/checkout@v6.0.2
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- id: get_gitsha
|
||||
|
||||
@@ -12,12 +12,12 @@ jobs:
|
||||
working-directory: ./tests/end-to-end
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
env:
|
||||
NODE_OPTIONS: --no-deprecation
|
||||
- uses: actions/setup-node@v6.4.0
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: 'npm'
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
- name: show server logs
|
||||
if: failure()
|
||||
run: cat /tmp/stderrlog
|
||||
- uses: actions/upload-artifact@v7.0.1
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
with:
|
||||
name: playwright-report
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
target: x86_64-apple-darwin
|
||||
features: "odbc-static"
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
@@ -43,7 +43,7 @@ jobs:
|
||||
- name: Upload unsigned Windows artifact
|
||||
if: matrix.os == 'windows-latest'
|
||||
id: upload_unsigned
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: unsigned-windows
|
||||
path: target/${{ matrix.target }}/superoptimized/sqlpage.exe
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
|
||||
- name: Upload signed Windows artifact
|
||||
if: matrix.os == 'windows-latest'
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage windows-latest
|
||||
path: signed-windows/sqlpage.exe
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
- name: Upload artifact (non-Windows)
|
||||
if: matrix.os != 'windows-latest'
|
||||
uses: actions/upload-artifact@v7.0.1
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage ${{ matrix.os }}
|
||||
path: target/${{ matrix.target }}/superoptimized/sqlpage${{ matrix.binary_extension }}
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: quay.io/pypa/manylinux_2_28_x86_64
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
@@ -97,7 +97,7 @@ jobs:
|
||||
NODE_OPTIONS: --no-deprecation
|
||||
- name: Build
|
||||
run: cargo build --profile superoptimized --locked --target x86_64-unknown-linux-gnu --features "odbc-static"
|
||||
- uses: actions/upload-artifact@v7.0.1
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage ubuntu-latest
|
||||
path: target/x86_64-unknown-linux-gnu/superoptimized/sqlpage
|
||||
@@ -107,10 +107,10 @@ jobs:
|
||||
name: Build AWS Lambda Serverless zip image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- run: docker build -t sqlpage-lambda-builder . -f lambda.Dockerfile --target builder
|
||||
- run: docker run sqlpage-lambda-builder cat deploy.zip > sqlpage-aws-lambda.zip
|
||||
- uses: actions/upload-artifact@v7.0.1
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: sqlpage aws lambda serverless image
|
||||
path: sqlpage-aws-lambda.zip
|
||||
@@ -121,8 +121,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/download-artifact@v8.0.1
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/download-artifact@v8
|
||||
env:
|
||||
NODE_OPTIONS: --no-deprecation
|
||||
- run: |
|
||||
@@ -153,7 +153,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user