Skip to content

Upgrade to Node.js 24 and update dependencies #5

Upgrade to Node.js 24 and update dependencies

Upgrade to Node.js 24 and update dependencies #5

Workflow file for this run

name: Test this workflow action

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 24, Col: 15): Unrecognized named-value: 'github'. Located at position 1 within expression: github.head_ref || github.ref_name
on:
push:
jobs:
test:
runs-on: ubicloud
steps:
- uses: actions/checkout@v6
- name: Generate public ssh key
id: generate-key
run: |
mkdir -p ~/.ssh/
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N "" -q
PUBLIC_KEY="$(cat ~/.ssh/id_rsa.pub)"
echo "public_key<<EOF" >> $GITHUB_OUTPUT
echo "$PUBLIC_KEY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo $PUBLIC_KEY >> ~/.ssh/authorized_keys
- name: Setup SSH access
id: ssh
uses: ubicloud/ssh-runner@${{ github.head_ref || github.ref_name }}
with:
public-ssh-key: "${{ steps.generate-key.outputs.public_key }}"
wait-minutes: 1
- name: Try to ssh
run: |
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${{ steps.ssh.outputs.user }}@${{ steps.ssh.outputs.ip }} 'uptime'