From 13b7cbff27067f555b8693aa900e07d51050092d Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Sat, 13 Jan 2024 15:31:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Remove=20Travis=20CI=20&=20prepa?= =?UTF-8?q?re=20Github=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/unit_test.yaml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- README.md | 6 +++--- 3 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/unit_test.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/unit_test.yaml b/.github/workflows/unit_test.yaml new file mode 100644 index 00000000..b94f5390 --- /dev/null +++ b/.github/workflows/unit_test.yaml @@ -0,0 +1,30 @@ +name: Node.js CI +on: [push] +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node-version: [18.x, 20.x] + os: [ubuntu-20.04, windows-latest, macos-latest] + env: + TZ: "Europe/Brussels" + SLOWTEST: true + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Set Windows Timezone + if: matrix.os == 'windows-latest' + run: tzutil /s "Romance Standard Time" + - name: Install NPM Dependencies + run: npm install + - name: Run Unit Tests + run: npm test + - name: Run Coverage Tests + run: npm run coverage + - name: Report Coverage To Codecov + run: npm run report-coverage \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 14e4feb9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -node_js: - - "10.21.0" - - "12.18.2" - - "14.5.0" -env: - - TZ="Europe/Brussels" -after_success: - - npm run coverage - - npm run report-coverage \ No newline at end of file diff --git a/README.md b/README.md index 88211fe5..4586f223 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Alchemy
- - - Mac/Linux Build Status + + + Node.js CI (Linux, MacOS, Windows)