From: Jérôme Benoit Date: Fri, 24 Apr 2020 23:16:36 +0000 (+0200) Subject: Add GitHub actions. X-Git-Tag: v1.0.1-0~343 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1b6ecb4418cb37dd4977fc7d448d78f76f71083e;hp=c718e93d6f1ddee27b5265480f0b3a4b83d2bd7a;p=e-mobility-charging-stations-simulator.git Add GitHub actions. Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 00000000..d0213942 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,13 @@ +name: Greetings + +on: [pull_request, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Welcome to your first issue in e-Mobility software' + pr-message: 'Welcome to your first PR in e-Mobility software' diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..1a8f851b --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,25 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [13.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and lint + run: | + npm ci + npm run lint + env: + CI: true