Skip to content

Commit e63095a

Browse files
committed
Add github build workflow
1 parent 8ba6492 commit e63095a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**/*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: build
12+
runs-on: ubuntu-24.04
13+
steps:
14+
# https://github.com/actions/checkout
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
18+
# https://github.com/actions/setup-node
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .tool-versions
22+
cache: npm
23+
24+
- name: Install dependencies
25+
run: |
26+
npm ci
27+
28+
- name: Check source code formatting
29+
run: |
30+
npm run format
31+
32+
- name: Ensure there are no uncommitted changes
33+
run: |
34+
git status --porcelain
35+
test -z "$(git status --porcelain)"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Backend for The Revolutionary Product, a multi-component web application to
44
illustrate [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
55
and [reverse proxying](https://en.wikipedia.org/wiki/Reverse_proxy).
66

7+
[![build](https://github.com/MediaComem/revprod-backend/actions/workflows/build.yml/badge.svg)](https://github.com/MediaComem/revprod-backend/actions/workflows/build.yml)
8+
[![license](https://img.shields.io/github/license/MediaComem/big-browser)](https://opensource.org/licenses/MIT)
9+
710
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
811
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
912

0 commit comments

Comments
 (0)