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