From 1b6ecb4418cb37dd4977fc7d448d78f76f71083e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 25 Apr 2020 01:16:36 +0200 Subject: [PATCH 1/1] Add GitHub actions. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/greetings.yml | 13 +++++++++++++ .github/workflows/nodejs.yml | 25 +++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/greetings.yml create mode 100644 .github/workflows/nodejs.yml 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 -- 2.34.1