enhance(ci): Change from CircleCI to GitHub actions
This commit is contained in:
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@@ -1,20 +1,15 @@
|
|||||||
name: Main
|
name: Main
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
node:
|
node:
|
||||||
name: Test Node ${{ matrix.node }}
|
name: Node ${{ matrix.node }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ['12.18', '14.4']
|
node: ['12.14.0', '14']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the project
|
- name: Checkout the project
|
||||||
@@ -40,7 +35,7 @@ jobs:
|
|||||||
- name: Install dependencies using Yarn
|
- name: Install dependencies using Yarn
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Execute the test scripts
|
- name: Execute the Node test scripts
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
||||||
- name: Verify that assets are built successfully
|
- name: Verify that assets are built successfully
|
||||||
@@ -49,8 +44,9 @@ jobs:
|
|||||||
cat public/mix-manifest.json
|
cat public/mix-manifest.json
|
||||||
|
|
||||||
php:
|
php:
|
||||||
name: Test PHP ${{ matrix.php }}
|
name: PHP ${{ matrix.php }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php: ['7.3', '7.4', '8.0']
|
php: ['7.3', '7.4', '8.0']
|
||||||
@@ -80,5 +76,5 @@ jobs:
|
|||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest
|
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
|
run: composer run-script lint
|
||||||
|
|||||||
Reference in New Issue
Block a user