diff --git a/.ci/docker/windows/Dockerfile b/.ci/docker/windows/Dockerfile deleted file mode 100644 index 4ffaa3ec..00000000 --- a/.ci/docker/windows/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM cirrusci/windowsservercore:2019 - -ARG node_version - -RUN choco install nodejs --yes --version %node_version% \ No newline at end of file diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index 54b6e448..00000000 --- a/.cirrus.yml +++ /dev/null @@ -1,39 +0,0 @@ -container: - image: node:12 - -windows_task: - windows_container: - dockerfile: .ci/docker/windows/Dockerfile - os_version: 2019 - docker_arguments: - matrix: - - node_version: 12.1.0 - install_script: npm ci - test_script: npm test - -lint_task: - install_script: npm ci - test_script: npm run lint - -license_task: - install_script: npm ci - test_script: npm run license-check - -system_test_task: - install_script: npm ci - test_script: npm run system-test - -test_task: - container: - matrix: - image: node:13 - image: node:12 - image: node:10 - install_script: npm ci - test_script: npm test - -coverage_task: - script: - - npm ci - - npm test - - npm run codecov diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..97bf66f2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,66 @@ +on: [push] +name: ci +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [10, 12, 13] + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: node --version + - run: npm ci + - run: npm test + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm run system-test + system_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm run system-test + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm run lint + license_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm run license-check + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm test + - run: npm run codecov + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + \ No newline at end of file