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:
|
2020-06-20 06:00:40 +00:00
|
|
|
Regressions:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-02-20 03:56:43 +00:00
|
|
|
- name: Install OpenSCAD
|
2020-06-20 06:00:40 +00:00
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
2021-02-20 03:56:43 +00:00
|
|
|
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
|
|
|
|
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
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-03-09 07:31:39 +00:00
|
|
|
- name: Clone Wiki
|
2021-05-16 19:49:53 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2021-05-16 19:52:31 +00:00
|
|
|
repository: revarbat/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
|
|
|
|
|
2020-06-20 01:10:47 +00:00
|
|
|
- name: Install Python dev
|
2021-02-02 10:33:32 +00:00
|
|
|
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil
|
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
|
2021-02-20 03:56:43 +00:00
|
|
|
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
|
|
|
|
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
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Clone Wiki
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: revarbat/BOSL2.wiki
|
|
|
|
path: BOSL2.wiki
|
|
|
|
|
|
|
|
- name: Apt Update
|
|
|
|
run: sudo apt update
|
|
|
|
|
|
|
|
- name: Install Python dev
|
|
|
|
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil
|
|
|
|
|
|
|
|
- name: Install OpenSCAD-DocsGen package.
|
|
|
|
run: sudo pip3 install openscad-docsgen
|
|
|
|
|
|
|
|
- name: Install OpenSCAD
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
wget https://files.openscad.org/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-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
|
|
|
|