From c48b02804f197677c2b568ee802930bacaef9f22 Mon Sep 17 00:00:00 2001 From: macoto1995 Date: Wed, 25 Oct 2023 16:08:38 +0900 Subject: [PATCH] ci --- .github/workflows/test.yaml | 17 +++++++++++++++++ .node-version | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/test.yaml create mode 100644 .node-version diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..27a9cff --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,17 @@ +on: + pull_request: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version-file: .node-version + - run: npm ci + - run: npm run build + - run: npm run test diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..6569dfa --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.8.1