Skip to content

Commit

Permalink
task: CI action added
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Sep 13, 2022
1 parent a8b9c28 commit 09bea50
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: E2E-test-dApp CI integration
on:
pull_request:
branches:
- develop

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Linting using Eslint
run: |
npm run lint
- name: Commit linted files
run: |
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "CI: Linted files" --no-verify -a
- name: Formatting using Prettier
run: |
npm run format
- name: Commit formatted files
run: |
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "CI: Formatted files" --no-verify -a
- name: Push changes on develop
if: github.ref == 'develop'
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 09bea50

Please sign in to comment.