Skip to content

Commit

Permalink
Create build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sixem committed May 23, 2024
1 parent 1177ee7 commit fe57e29
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Cache modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

- name: Build
run: npm run build

- name: Build standalone
run: npm run make-standalone

- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: build/

0 comments on commit fe57e29

Please sign in to comment.