Skip to content

Workflow file for this run

on:
workflow_dispatch:
pull_request:
push:
jobs:
deno:
name: Codestyle (format and lint)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.39"
- run: just --verbose ci-codestyle
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- uses: Swatinem/rust-cache@v2
- name: print glibc version
run: |
GCC_FEATURES=$(gcc -dM -E - <<< "#include <features.h>")
if grep -q __UCLIBC__ <<< "${GCC_FEATURES}"; then
echo "uClibc"
grep "#define __UCLIBC_MAJOR__" <<< "${GCC_FEATURES}"
grep "#define __UCLIBC_MINOR__" <<< "${GCC_FEATURES}"
grep "#define __UCLIBC_SUBLEVEL__" <<< "${GCC_FEATURES}"
elif grep -q __GLIBC__ <<< "${GCC_FEATURES}"; then
echo "glibc"
grep "#define __GLIBC__" <<< "${GCC_FEATURES}"
grep "#define __GLIBC_MINOR__" <<< "${GCC_FEATURES}"
else
echo "something else"
fi
- name: Configure
run: just --verbose configure-tree-sitter
- name: Check generated files
run: just --verbose ci-validate-generated-files
- name: Run tests
run: just --verbose test-ts
- name: Test parsing and highlighting on all Just files in repo
run: just --verbose test-parse-highlight
- name: Check C files with args
run: just --verbose check-c
static-validation:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@just
- name: Verify Just can parse test files
run: just --verbose verify-just-parsing
- name: Look for tests that contain errors
run: just --verbose verify-no-error-tests