From cf7bfcdb9692cefd093a12b609c6c0545ad56d78 Mon Sep 17 00:00:00 2001 From: Michiel van Roon Date: Sat, 10 Apr 2021 20:36:46 +0200 Subject: [PATCH 1/2] build: unify github actions --- .github/workflows/push.yml | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..06af3f0 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,54 @@ +name: Build, lint and test + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + + - name: 'Install Dependencies' + id: install + run: yarn + + - name: Run prettier + run: yarn prettier -c ./src + + - name: Run eslint + run: yarn eslint ./src --color --max-warnings 0 + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + + - name: 'Install Dependencies' + id: install + run: yarn + + - name: 'Build Project' + id: build + run: yarn build + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + + - name: 'Install Dependencies' + id: install + run: yarn + + - name: Run rests + run: yarn test + From 0d5b70e832a918678f29562f1c60ec337d29069b Mon Sep 17 00:00:00 2001 From: Michiel van Roon Date: Sat, 10 Apr 2021 20:37:36 +0200 Subject: [PATCH 2/2] build: remove redundant actions --- .github/workflows/build.yml | 20 -------------------- .github/workflows/lint.yml | 22 ---------------------- .github/workflows/test.yml | 19 ------------------- 3 files changed, 61 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index c3daa42..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Build - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14.x' - - - name: 'Install Dependencies' - id: install - run: npm install - - - name: 'Build Project' - id: build - run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 3f630b5..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Lint code with eslint and prettier - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14.x' - - - name: 'Install Dependencies' - id: install - run: npm install - - - name: Run prettier - run: ./node_modules/.bin/prettier -c ./src - - - name: Run eslint - run: ./node_modules/.bin/eslint ./src --color --max-warnings 0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index c872d86..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Run tests - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14.x' - - - name: 'Install Dependencies' - id: install - run: npm install - - - name: Run rests - run: npm run test