diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 289df6f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: 2.1 - -commands: - run-tests: - steps: - - checkout - - restore_cache: - key: dependency-cache-{{ checksum "package.json" }} - - run: - name: Installing Dependencies - command: npm install - - save_cache: - key: dependency-cache-{{ checksum "package.json" }} - paths: - - ./node_modules - - run: - name: Lint Source - command: npm run test - -jobs: - node-latest: - docker: - - image: circleci/node:latest - steps: - - run-tests - - node-lts: - docker: - - image: circleci/node:lts - steps: - - run-tests - -workflows: - node-multi-build: - jobs: - - node-latest - - node-lts - version: 2 diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml new file mode 100644 index 0000000..618ad79 --- /dev/null +++ b/.github/workflows/default.yml @@ -0,0 +1,38 @@ +name: CI + +on: [push] + +jobs: + default: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: ['*', 'lts/*'] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 4 + + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Cache pnpm modules + uses: actions/cache@v2 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- + + - uses: pnpm/action-setup@v2 + with: + version: 6 + run_install: | + - recursive: true + - args: [--frozen-lockfile, --strict-peer-dependencies] + + - name: Run Tests + run: pnpm run test --if-present diff --git a/readme.markdown b/readme.markdown index 31fd853..8bd2ce0 100644 --- a/readme.markdown +++ b/readme.markdown @@ -2,7 +2,8 @@ [![npm](https://flat.badgen.net/npm/license/cc-md)](https://www.npmjs.org/package/cc-md) [![npm](https://flat.badgen.net/npm/v/cc-md)](https://www.npmjs.org/package/cc-md) -[![CircleCI](https://flat.badgen.net/circleci/github/idleberg/Creative-Commons-Markdown)](https://circleci.com/gh/idleberg/Creative-Commons-Markdown) +[![CI](https://img.shields.io/github/workflow/status/idleberg/Creative-Commons-Markdown/CI?style=flat-square)](https://github.com/idleberg/Creative-Commons-Markdown/actions) + On November 25th, 2013, [Creative Commons](http://creativecommons.org/) announced their next generation licenses: [Creative Commons 4.0](https://creativecommons.org/weblog/entry/40768). By default, these are available as [HTML](http://creativecommons.org/licenses/) or [plaintext](http://creativecommons.org/weblog/entry/41127). This project adds [Markdown](http://daringfireball.net/projects/markdown/)-formatted licenses to that list, while aiming for best [compatibility on GitHub](https://github.github.com/gfm/).