diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 0557496..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,38 +0,0 @@ -# Javascript Node CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-javascript/ for more details -# -version: 2 -jobs: - build: - docker: - # specify the version you desire here - - image: circleci/node:10 - - working_directory: ~/repo - - steps: - - checkout - - # Download and cache dependencies - - restore_cache: - keys: - - v1-dependencies-{{ checksum "package.json" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: npm install - - - save_cache: - paths: - - node_modules - key: v1-dependencies-{{ checksum "package.json" }} - - # run tests - - run: npm test - - # run lint - - run: npm run lint - - # run coverage - - run: npm run coverage diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..28828f1 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@godaddy/javascript \ No newline at end of file diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml new file mode 100644 index 0000000..f249a6f --- /dev/null +++ b/.github/workflows/cicd.yaml @@ -0,0 +1,35 @@ +name: 'CICD' + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: ['12', '14', '16'] + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + - name: Install dependencies + run: npm ci + - name: Test + run: npm test + - name: Lint + run: npm run lint + - name: Coverage + run: npm run coverage \ No newline at end of file