diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..17bd697 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Node.js CI + +on: + push: + branches: + - '**' + - '!qa' + - '!master' + pull_request: + branches: + - qa + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - 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 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