Skip to content

report test

report test #21

Workflow file for this run

name: Lighthouse Report
on: [pull_request]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: mkdir /tmp/artifacts
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: /tmp/artifacts
urls: 'https://quickstarts.teradata.com,https://quickstarts.teradata.com/nos.html'
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts
- name: Tets Script
uses: actions/github-script@v7
id: set-result
with:
script: return "Hello!"
result-encoding: string
- name: Get result
run: echo "${{steps.set-result.outputs.result}}"
- name: Leave Comment
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const gh = require('@actions/github');
const ghContext = gh.context;
const octokit = new gh.GitHub(process.env.GITHUB_TOKEN);
octokit.issues.createComment({
owner: ghContext.repo.owner,
repo: ghContext.repo.repo,
issue_number: ghContext.issue.number,
body: 'Hello!'
});