103 lines
2.9 KiB
YAML
Raw Normal View History

2021-06-22 19:44:47 -07:00
name: Checks
2020-07-07 00:32:50 -07:00
on: [pull_request]
2020-06-18 19:47:02 -07:00
jobs:
2020-06-19 23:00:40 -07:00
Regressions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2020-06-19 23:00:40 -07:00
- name: Install Required Libraries
run: sudo apt-get install libfuse2
- name: Install OpenSCAD
2020-06-19 23:00:40 -07:00
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
2020-06-19 23:00:40 -07:00
sudo chmod +x /usr/local/bin/openscad
- name: Run Regression Tests
run: |
cd $GITHUB_WORKSPACE
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
./scripts/run_tests.sh
CheckTutorials:
runs-on: ubuntu-latest
2020-06-18 19:47:02 -07:00
steps:
- name: Checkout
uses: actions/checkout@v3
2020-06-18 19:47:02 -07:00
2021-03-08 23:31:39 -08:00
- name: Clone Wiki
uses: actions/checkout@v3
2021-05-16 12:49:53 -07:00
with:
2023-05-21 21:00:05 -07:00
repository: BelfrySCAD/BOSL2.wiki
2021-05-16 12:49:53 -07:00
path: BOSL2.wiki
2020-06-19 16:51:28 -07:00
- name: Apt Update
run: sudo apt update
2022-11-30 20:13:07 -08:00
- name: Install Required Libraries
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil libfuse2
- name: Install OpenSCAD-DocsGen package.
run: sudo pip3 install openscad-docsgen
2020-06-19 23:00:40 -07:00
- name: Install OpenSCAD
2020-06-19 16:51:28 -07:00
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
2020-06-19 23:00:40 -07:00
sudo chmod +x /usr/local/bin/openscad
2020-06-19 16:51:28 -07:00
2021-06-22 19:44:47 -07:00
- name: Tabs Check
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/check_for_tabs.json"
./scripts/check_for_tabs.sh
- name: Checking Tutorials
2020-06-19 19:41:06 -07:00
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/openscad_docsgen.json"
2020-06-19 20:22:56 -07:00
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
2022-01-17 00:45:36 -08:00
openscad-mdimggen -T
2020-06-19 19:41:06 -07:00
CheckDocs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clone Wiki
uses: actions/checkout@v3
with:
2023-05-21 21:00:05 -07:00
repository: BelfrySCAD/BOSL2.wiki
path: BOSL2.wiki
- name: Apt Update
run: sudo apt update
2022-11-30 20:13:07 -08:00
- name: Install Required Libraries
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil libfuse2
- name: Install OpenSCAD-DocsGen package.
run: sudo pip3 install openscad-docsgen
- name: Install OpenSCAD
run: |
cd $GITHUB_WORKSPACE
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
sudo chmod +x /usr/local/bin/openscad
- name: Checking Docs
2021-12-13 16:31:14 -08:00
run: |
cd $GITHUB_WORKSPACE
echo "::add-matcher::.github/openscad_docsgen.json"
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
2022-01-17 00:45:36 -08:00
openscad-docsgen -Tmf
2021-12-13 16:31:14 -08:00