-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac32e45
commit 97f3d13
Showing
2 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |