Skip to content

Commit

Permalink
update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ModischFabrications committed Oct 21, 2023
1 parent ac32e45 commit 97f3d13
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: PlatformIO CI

on:
workflow_dispatch:
push:
paths:
- "src/**"
- "platformio.ini"
- ".github/workflows/pio.yml"

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v2

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Set up Python
uses: actions/setup-python@v2

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run
env:
PLATFORMIO_BUILD_FLAGS: -D CI_BUILD
name: PlatformIO CI

on:
workflow_dispatch:
push:
paths:
- "src/**"
- "platformio.ini"
- ".github/workflows/pio.yml"

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Set up Python
uses: actions/setup-python@v3

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run
env:
PLATFORMIO_BUILD_FLAGS: -D CI_BUILD
56 changes: 28 additions & 28 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Website CI

on:
workflow_dispatch:
push:
paths:
- "website/**"
- ".github/workflows/website.yml"
- ".github/config/lighthouserc.json"
- ".github/config/budget.json"

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Load repo
uses: actions/checkout@v2

- name: Audit using Lighthouse CI
uses: treosh/lighthouse-ci-action@v2
with:
# no urls needed, since it uses local folder to scan .html files
configPath: "./.github/config/lighthouserc.json"
budgetPath: ".github/config/budget.json"
uploadArtifacts: true
temporaryPublicStorage: true
name: Website CI

on:
workflow_dispatch:
push:
paths:
- "website/**"
- ".github/workflows/website.yml"
- ".github/config/lighthouserc.json"
- ".github/config/budget.json"

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Load repo
uses: actions/checkout@v3

- name: Audit using Lighthouse CI
uses: treosh/lighthouse-ci-action@v10
with:
# no urls needed, since it uses local folder to scan .html files
configPath: "./.github/config/lighthouserc.json"
budgetPath: ".github/config/budget.json"
uploadArtifacts: true
temporaryPublicStorage: true

0 comments on commit 97f3d13

Please sign in to comment.