test: bundle.test #19
This file contains 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: 'Custom action' | |
on: | |
push: | |
branches: | |
- '*' | |
- '!master' | |
jobs: | |
composite: | |
name: 'composite' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to master | |
uses: actions/checkout@v3 | |
# with: | |
# ref: 'master' | |
# path: br-base | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Bundle test | |
uses: actions/github-script@v7 | |
id: bundleTest | |
with: | |
result-encoding: string | |
script: | | |
const files = fs.readdirSync(__dirname); | |
// const script = require('./bundle.test.js'); | |
// const { version } = require('./package.json'); | |
console.log('##workspace', process.env.GITHUB_WORKSPACE || ''); | |
console.log('##files', files); | |
// console.log('##version', version); | |
return 'Hi: Hello!'; | |
- name: Post report console | |
run: | | |
echo '${{ steps.bundleTest.outputs.result }}' | |
shell: bash |