From 54fd2ff8e94ecc66e72581294928c732a4d9cf85 Mon Sep 17 00:00:00 2001 From: Marcos Silva Date: Wed, 18 Aug 2021 12:03:14 -0400 Subject: [PATCH 1/3] docs: updated readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e475f8f..1b2a961 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # node-jsonapi-serializer +![workflow](https://github.com/GoIntegro/node-jsonapi-serializer/actions/workflows/main.yml/badge.svg) ## Description From 73a63e1104599e6d3646cd100713a188e69a8663 Mon Sep 17 00:00:00 2001 From: Marcos Silva Date: Wed, 18 Aug 2021 12:03:41 -0400 Subject: [PATCH 2/3] ci: added ci --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c51c0be --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +# This is a basic workflow to help you get started with Actions + +name: Node.js CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: + - '!qa' + - '!master' + pull_request: + branches: + - qa + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2.4.0 + with: + node-version: '14' + + - name: Install + run: npm install + + - name: Test + run: npm run test \ No newline at end of file From 3edeb8b7dcc80152a75e34b833d070baa9bd09b0 Mon Sep 17 00:00:00 2001 From: Marcos Silva Date: Wed, 18 Aug 2021 12:26:29 -0400 Subject: [PATCH 3/3] ci: matching every branch except qa|master --- .github/workflows/main.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c51c0be..17bd697 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,30 +1,21 @@ -# This is a basic workflow to help you get started with Actions - name: Node.js CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: push: branches: + - '**' - '!qa' - '!master' pull_request: branches: - qa -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Setup Node.js environment uses: actions/setup-node@v2.4.0 with: