From a5c96fa07ee1e813310b8a10d0b5a4e0fa618387 Mon Sep 17 00:00:00 2001 From: FajarKim Date: Sat, 4 Nov 2023 16:52:50 +0700 Subject: [PATCH] ci: added test github action workflow file --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0ccdb9d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: Test +on: + push: + branches: + - master + pull_request: + branches: + - master + +permissions: read-all + +jobs: + build: + name: Perform check + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Setup Node + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install & Build + run: | + npm ci + npm i typescript + npm run build