Skip to content

Add git workflows

Add git workflows #13

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
build-node:
# prevent from running on forks
if: github.repository_owner == 'restatedev'
runs-on: ubuntu-latest
env:
RESTATE_DISABLE_TELEMETRY: "true"
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Pull restate-server docker image
run: docker pull docker.io/restatedev/restate:latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Run tests
run: ./.tools/run_node_tests.sh
build-py:
# prevent from running on forks
if: github.repository_owner == 'restatedev'
runs-on: ubuntu-latest
env:
RESTATE_DISABLE_TELEMETRY: "true"
strategy:
matrix:
python: ["3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Run tests
run: ./.tools/run_python_tests.sh