test ci simple 4-scriopt-js #1 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go Test With Matrix | ||
| on: | ||
| push: | ||
| branches: | ||
| - "4-script-je" | ||
| workflow_dispatch: | ||
| jobs: | ||
| test: | ||
| name: Test on Go | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| - name: Run inline JavaScript script | ||
| run: | | ||
| console.log("Hello from inline JavaScript!"); | ||
| const now = new Date(); | ||
| console.log(`Current date and time: ${now.toLocaleString()}`); | ||
| console.log(`Repository name: ${{ github.repository }}`); | ||
| shell: node {0} | ||