Skip to content

Commit

Permalink
👷 Add config CI github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasgusson committed Oct 16, 2023
1 parent b6d8407 commit da1d542
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
A simple library to generate Google Merchant XML Feed

[![npm version](https://badge.fury.io/js/google-merchant-feed.svg)](https://badge.fury.io/js/google-merchant-feed)
![Build status](https://github.com/douglasgusson/google-merchant-feed/actions/workflows/ci.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![NPM Downloads](https://badgen.net/npm/dm/google-merchant-feed)](https://www.npmjs.com/package/google-merchant-feed)

Expand Down

0 comments on commit da1d542

Please sign in to comment.