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
|
2023-01-02 22:25:37 -08:00
|
|
|
uses: actions/checkout@v3
|
2020-06-19 23:00:40 -07:00
|
|
|
|
2022-11-30 20:18:17 -08:00
|
|
|
- name: Install Required Libraries
|
|
|
|
run: sudo apt-get install libfuse2
|
|
|
|
|
2021-02-19 19:56:43 -08:00
|
|
|
- name: Install OpenSCAD
|
2020-06-19 23:00:40 -07:00
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
2023-08-18 20:43:21 -07:00
|
|
|
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
|
2021-02-19 19:56:43 -08:00
|
|
|
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
|
|
|
|
|
2022-01-17 00:39:06 -08:00
|
|
|
CheckTutorials:
|
2020-06-19 19:57:11 -07:00
|
|
|
runs-on: ubuntu-latest
|
2020-06-18 19:47:02 -07:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-02 22:25:37 -08:00
|
|
|
uses: actions/checkout@v3
|
2020-06-18 19:47:02 -07:00
|
|
|
|
2021-03-08 23:31:39 -08:00
|
|
|
- name: Clone Wiki
|
2023-01-02 22:25:37 -08:00
|
|
|
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
|
|
|
|
2021-03-12 21:54:56 -08: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
|
2020-06-19 18:10:47 -07:00
|
|
|
|
2021-02-19 19:56:43 -08:00
|
|
|
- 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
|
2023-08-18 20:43:21 -07:00
|
|
|
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
|
2021-02-19 19:56:43 -08:00
|
|
|
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
|
|
|
|
|
2022-01-17 00:39:06 -08:00
|
|
|
- name: Checking Tutorials
|
2020-06-19 19:41:06 -07:00
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
2021-03-30 15:27:57 -07:00
|
|
|
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
|
|
|
|
2022-01-17 00:39:06 -08:00
|
|
|
CheckDocs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-02 22:25:37 -08:00
|
|
|
uses: actions/checkout@v3
|
2022-01-17 00:39:06 -08:00
|
|
|
|
|
|
|
- name: Clone Wiki
|
2023-01-02 22:25:37 -08:00
|
|
|
uses: actions/checkout@v3
|
2022-01-17 00:39:06 -08:00
|
|
|
with:
|
2023-05-21 21:00:05 -07:00
|
|
|
repository: BelfrySCAD/BOSL2.wiki
|
2022-01-17 00:39:06 -08:00
|
|
|
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
|
2022-01-17 00:39:06 -08:00
|
|
|
|
|
|
|
- name: Install OpenSCAD-DocsGen package.
|
|
|
|
run: sudo pip3 install openscad-docsgen
|
|
|
|
|
|
|
|
- name: Install OpenSCAD
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
2023-08-18 20:43:21 -07:00
|
|
|
wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
|
2022-01-17 00:39:06 -08:00
|
|
|
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
|
|
|
|