Skip to content

Commit a1b00d1

Browse files
committed
feat(ci): remove old ci, add ui/api/db ci
1 parent 0259437 commit a1b00d1

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: api
55

66
on:
77
push:
@@ -11,21 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
17-
strategy:
18-
matrix:
19-
node-version: [18.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2215
steps:
2316
- uses: actions/checkout@v2
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
- run: ./install.sh
29-
- run: ./build.sh
30-
- run: ./test.sh
31-
# TODO: build dockers too
17+
- run: docker compose build api

.github/workflows/db.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: db
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: docker compose build db

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Jeu de mots
22

3-
<a href="https://github.com/berdal84/jeudemots-ng/actions?query=workflow Node.js CI" title="ng build">
4-
<img src="https://github.com/berdal84/jeudemots-ng/workflows/Node.js CI/badge.svg" />
5-
</a>
3+
[![ui](https://github.com/berdal84/jeudemots/actions/workflows/ui.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/ui.yml)
4+
[![api](https://github.com/berdal84/jeudemots/actions/workflows/api.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/api.yml)
5+
[![db](https://github.com/berdal84/jeudemots/actions/workflows/db.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/db.yml)
66

77
## Introduction
88

0 commit comments

Comments
 (0)