Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve readability and update to latest versions #15

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
name: Build
on: pull_request

on:
pull_request:
paths-ignore:
- '**/*.md'

jobs:
build:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest

strategy:
matrix:
node: ["16", "18"]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: cp .env.local.sample .env.local
- run: npm run build
continue-on-error: FALSE

- name: Install and Build
run: |
npm ci
cp .env.local.sample .env.local
npm run build

- name: Error handling
if: failure()
run: echo "Build failed!"