From 1f6c2e6bcbe7bfbb154e165cdfc70df0a7de89e5 Mon Sep 17 00:00:00 2001 From: softwaredevelop <61334390+softwaredevelop@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:32:30 +0200 Subject: [PATCH] test: Add GitHub Actions workflow for testing on macOS and Linux --- .github/workflows/t.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/t.yml diff --git a/.github/workflows/t.yml b/.github/workflows/t.yml new file mode 100644 index 0000000..45198f3 --- /dev/null +++ b/.github/workflows/t.yml @@ -0,0 +1,23 @@ +on: + push: + branch: main + tags: + - 'v\d+' +jobs: + test: + strategy: + matrix: + os: [macos-latest, linux-latest] + runs-on: ${{ matrix.os }} + steps: + - run: echo "Checking commit '${{ github.event.head_commit.message }}'" + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node_version: 18.x + - uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ matrix.platform }}-node-${{ hashFiles('**/package-lock.json') }} + if: ${{ github.repository.permissions.admin == true }} + - run: npm install && npm test