Migrate OpenWeather to Open-Meteo #145
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
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
- main | |
- develop | |
pull_request: | |
jobs: | |
# app module | |
app: | |
runs-on: ubuntu-latest | |
name: app-node-${{ matrix.node }} | |
strategy: | |
matrix: | |
node: [ 18, 22 ] | |
fail-fast: true | |
defaults: | |
run: | |
working-directory: app | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache-dependency-path: "app" | |
- name: Install dependencies | |
run: npm ci | |
- name: Validate | |
run: npm run ci | |
- name: Build | |
run: npm run build | |
# server module | |
server: | |
runs-on: ubuntu-latest | |
name: server-node-${{ matrix.node }} | |
strategy: | |
matrix: | |
node: [ 16, 20 ] | |
fail-fast: true | |
defaults: | |
run: | |
working-directory: server | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache-dependency-path: "server" | |
- name: Install dependencies | |
run: npm ci | |
- name: Validate | |
run: npm run ci | |
# docs module | |
docs: | |
runs-on: ubuntu-latest | |
name: docs-node-${{ matrix.node }} | |
strategy: | |
matrix: | |
node: [ 16 ] | |
fail-fast: true | |
defaults: | |
run: | |
working-directory: docs | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache-dependency-path: "docs" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build |