From 6a8eafa831866e60e8efbb4eacb355b6ed741e54 Mon Sep 17 00:00:00 2001 From: mattk70 Date: Sat, 21 Oct 2023 22:35:44 +0100 Subject: [PATCH] modify action to install node and dependencies --- ...ctions-demo.yml => check-installation.yml} | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) rename .github/workflows/{github-actions-demo.yml => check-installation.yml} (60%) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/check-installation.yml similarity index 60% rename from .github/workflows/github-actions-demo.yml rename to .github/workflows/check-installation.yml index 15a61d6b..45b8bfc6 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/check-installation.yml @@ -1,9 +1,9 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +name: Test Chirpity Compilation +run-name: ${{ github.actor }} is installing chirpoity on: [push] jobs: Explore-GitHub-Actions: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" @@ -12,7 +12,14 @@ jobs: uses: actions/checkout@v4 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 16.13.x + cache: npm + - run: echo "🍏 Node setup status is ${{ job.status }}." + - name: Install + run: npm ci + - run: echo "Install's status is ${{ job.status }}." +