Skip to content

chore(main): release 0.18.0 #160

chore(main): release 0.18.0

chore(main): release 0.18.0 #160

Workflow file for this run

name: Test
on:
push:
branches-ignore: ["main"]
env:
NODE_VERSION: ">=18.12.1"
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
submodules: true
- name: Extract version from deno.json
uses: sergeysova/jq-action@v2
id: version
with:
cmd: "jq .version deno.json -r"
- name: Show my version
run: 'echo "version ${{ steps.version.outputs.value }}"'
- name: Setup Deno2 environment
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Deno install
run: deno install --frozen-lockfile
- name: Lint
run: deno lint
- name: Format
run: deno fmt
- name: Test
run: deno test -A
- name: Validate NPM build
run: deno run -A bin/build-npm.ts
integration-test:
runs-on: blacksmith-4vcpu-ubuntu-2204
needs: build
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
submodules: true
- name: Setup Deno2
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install Docker
run: |
if ! command -v docker &>/dev/null; then
curl -fsSL https://get.docker.com | sh
fi
docker version
- name: Install k3d
run: curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- name: Run integration tests
run: bash integration/run-integration.sh
- name: Collect logs on failure
if: failure()
run: |
kubectl logs -n data-pump-integration-test -l app=data-pump-test --tail=200 || true
kubectl logs -n data-pump-integration-test -l app=postgres --tail=100 || true
- name: Teardown
if: always()
run: bash integration/scripts/teardown.sh || true