diff --git a/.circleci/Dockerfile b/.circleci/Dockerfile deleted file mode 100644 index f7d6591..0000000 --- a/.circleci/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM mhart/alpine-node:11.3.0 -WORKDIR /src -COPY package.json ./ -RUN npm i -COPY index.js test.js ./ -RUN npm run test diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 78a078f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -jobs: - build: - machine: true - steps: - - checkout - - run: docker build -f .circleci/Dockerfile . diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 8a43dfc..0000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -/.git/ -/node_modules/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7170cff --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 16 + - 14 + - 12 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test