From 23fd09baea1833db7e37e89cd92863da37ac53c1 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 18 Jan 2021 12:46:24 -0600 Subject: [PATCH] enhance(ci): Change from CircleCI to GitHub actions --- .github/workflows/main.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd69d51..9631501 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,15 @@ name: Main -on: - push: - branches: - - master - pull_request: - branches: - - master +on: [push, pull_request] jobs: node: - name: Test Node ${{ matrix.node }} + name: Node ${{ matrix.node }} runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]')" strategy: matrix: - node: ['12.18', '14.4'] + node: ['12.14.0', '14'] steps: - name: Checkout the project @@ -40,7 +35,7 @@ jobs: - name: Install dependencies using Yarn run: yarn install - - name: Execute the test scripts + - name: Execute the Node test scripts run: yarn test - name: Verify that assets are built successfully @@ -49,8 +44,9 @@ jobs: cat public/mix-manifest.json php: - name: Test PHP ${{ matrix.php }} + name: PHP ${{ matrix.php }} runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]')" strategy: matrix: php: ['7.3', '7.4', '8.0'] @@ -80,5 +76,5 @@ jobs: - name: Install Composer dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest - - name: Execute the lint script + - name: Execute the PHP lint script run: composer run-script lint