From 5ea4bfa914f22e8a25f49b46b5f57a48a7ea5852 Mon Sep 17 00:00:00 2001 From: Joram van den Boezem Date: Tue, 13 Dec 2022 23:53:03 +0100 Subject: [PATCH] fix: add test workflow --- .github/workflows/test.yml | 20 ++++++++++++++++++++ .github/workflows/update-node-versions.yml | 2 -- 2 files changed, 20 insertions(+), 2 deletions(-) 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..d5d5d50 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: test + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: yarn + - run: yarn install + - run: yarn build + - uses: ./ + - run: | + find .github/workflows/ -type f | xargs tail -n +1 + cat package.json diff --git a/.github/workflows/update-node-versions.yml b/.github/workflows/update-node-versions.yml index f061820..5705c13 100644 --- a/.github/workflows/update-node-versions.yml +++ b/.github/workflows/update-node-versions.yml @@ -6,7 +6,6 @@ on: push: branches: - main - pull_request: jobs: update-node-versions: @@ -23,4 +22,3 @@ jobs: - uses: peter-evans/create-pull-request@v4 with: token: ${{ secrets.GH_PAT }} - base: main