ci: Update actions

This commit is contained in:
Wolfgang Walther
2021-11-21 18:40:42 +01:00
committed by Wolfgang Walther
parent 942391c508
commit b7c261f520
2 changed files with 20 additions and 20 deletions
+19 -19
View File
@@ -15,7 +15,7 @@ jobs:
name: Lint & check code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
@@ -34,7 +34,7 @@ jobs:
# https://github.com/actions/runner/issues/241#issuecomment-842566950
shell: script -qec "bash --noprofile --norc -eo pipefail {0}"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
@@ -43,7 +43,7 @@ jobs:
- name: Run coverage (IO tests and Spec tests against PostgreSQL 14)
run: postgrest-coverage
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v2.1.0
with:
files: ./coverage/codecov.json
@@ -82,7 +82,7 @@ jobs:
name: Test memory (Nix)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
@@ -94,7 +94,7 @@ jobs:
name: Build Linux static (Nix)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
@@ -103,7 +103,7 @@ jobs:
- name: Build static executable
run: nix-build -A postgrestStatic
- name: Save built executable as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: postgrest-linux-static-x64
path: result/bin/postgrest
@@ -112,7 +112,7 @@ jobs:
- name: Build Docker image
run: nix-build -A docker.image --out-link postgrest-docker.tar.gz
- name: Save built Docker image as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: postgrest-docker-x64
path: postgrest-docker.tar.gz
@@ -129,9 +129,9 @@ jobs:
name: Build Ubuntu & test (Stack)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Stack working files cache
uses: actions/cache@v2
uses: actions/cache@v2.1.6
with:
path: |
~/.stack
@@ -145,7 +145,7 @@ jobs:
echo "Using PostgreSQL binaries at $postgresql_bin ..."
PATH="$postgresql_bin:$PATH" test/with_tmp_db stack test
- name: Save built executable as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: postgrest-ubuntu-x64
path: result/postgrest
@@ -205,14 +205,14 @@ jobs:
name: Get FreeBSD build from CirrusCI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Get FreeBSD executable from CirrusCI
env:
# GITHUB_SHA does weird things for pull request, so we roll our own:
GITHUB_COMMIT: ${{github.event.pull_request.head.sha || github.sha}}
run: .github/get_cirrusci_freebsd
- name: Save executable as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: postgrest-freebsd-x64
path: postgrest
@@ -235,7 +235,7 @@ jobs:
version: ${{ steps.Identify-Version.outputs.version }}
isprerelease: ${{ steps.Identify-Version.outputs.isprerelease }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- id: Identify-Version
name: Identify the version to be released
run: |
@@ -272,7 +272,7 @@ jobs:
echo "Relevant extract from CHANGELOG.md:"
cat CHANGES.md
- name: Save CHANGES.md as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: release-changes
path: CHANGES.md
@@ -287,9 +287,9 @@ jobs:
env:
VERSION: ${{ needs.Prepare-Release.outputs.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Download all artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v2.0.10
with:
path: artifacts
- name: Create release bundle with archives for all builds
@@ -316,7 +316,7 @@ jobs:
artifacts/postgrest-windows-x64/postgrest.exe
- name: Save release bundle
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v2.2.4
with:
name: release-bundle
path: release-bundle
@@ -345,13 +345,13 @@ jobs:
VERSION: ${{ needs.Prepare-Release.outputs.version }}
ISPRERELEASE: ${{ needs.Prepare-Release.outputs.isprerelease }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.4.0
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
tools: release
- name: Download Docker image
uses: actions/download-artifact@v2
uses: actions/download-artifact@v2.0.10
with:
name: postgrest-docker-x64
- name: Publish images on Docker Hub