From 7820ca22b9e32a862a0c7f12decb2b35648dd96b Mon Sep 17 00:00:00 2001 From: Ty Date: Tue, 23 Jul 2024 20:42:17 +0200 Subject: [PATCH] Add github actions workflow --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..b52b73b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +on: + push: + branches: [ "*" ] + pull_request: + +jobs: + test: + strategy: + matrix: + node-version: ['latest', 'lts/iron'] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + - name: Install packages + run: corepack enable && yarn install --immutable + - name: Build with astro + run: yarn build \ No newline at end of file