change actions

This commit is contained in:
Aleksey_Levin 2024-01-07 16:11:33 +08:00
parent 2bee39f074
commit 365252e53a

View file

@ -2,17 +2,18 @@ name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push] on: [push]
jobs: jobs:
Explore-GitHub-Actions: init:
strategy:
matrix:
node-version: [ 17.x ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - uses: actions/checkout@v3
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - name: Starting NodeJs ${{ matrix.node-version}}
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." uses: actions/setup-node@v3
- name: Check out repository code with:
uses: actions/checkout@v4 node-version: ${{ matrix.node-version }}
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - name: install modules
- run: echo "🖥️ The workflow is now ready to test your code on the runner." run: yarn
- name: List files in the repository - name: build project
run: | run: yarn build
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."