Bump node.js version to 18.17.0 [AP-1081] #1394
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generated artifacts | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- staging | |
tags: | |
- "*" | |
pull_request: | |
paths: | |
- "generator/**" | |
- "spec/**" | |
- "c/test/**" | |
- "java/build.gradle" | |
- "java/test/**" | |
- "rust/sbp/tests/**" | |
jobs: | |
generation: | |
name: Generated artifacts | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Installing dependencies | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y tox python3-sphinx clang-format-6.0 enchant | |
pip3 install tox-run-command | |
tox -e py --notest | |
- name: Installing Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Installing Quicktype | |
run: | | |
npm ci | |
npm install -g quicktype | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: 7.1.1 | |
- name: Generate tests | |
run: | | |
rm c/test/auto_check_*.c c/test/cpp/auto_check_*.cc java/test/auto_check_*.java rust/sbp/tests/integration/auto_check_*.rs | |
make gen-c gen-java gen-rust gen-jsonschema gen-haskell gen-python gen-javascript gen-protobuf | |
make quicktype | |
- name: Check generated tests are up to date | |
run: | | |
git add c/test/ rust/sbp/tests/ | |
git diff --cached --exit-code | |
git diff --exit-code | |
# - name: Generate html for python | |
# run: make html-python # emits python/docs/build/html, not checked in | |
- name: Generate javadocs for java | |
run: make javadocs # emits java/build/docs/javadoc, not used | |
- name: Installing pdf dependencies | |
run: | | |
sudo apt-get install -y texlive-latex-extra texlive-fonts-extra texlive-science graphviz | |
- name: Generate pdf | |
id: pdf | |
run: | | |
make pdf | |
cp docs/sbp.pdf . | |
echo "::set-output name=artifact_name::sbp.pdf" | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ steps.pdf.outputs.artifact_name }} | |
path: ${{ steps.pdf.outputs.artifact_name }} | |
# - name: Check generated pdf | |
# run: | | |
# git diff --name-only --exit-code |