Skip to content

Merge pull request #160 from mackerelio/dependabot/npm_and_yarn/eslin… #265

Merge pull request #160 from mackerelio/dependabot/npm_and_yarn/eslin…

Merge pull request #160 from mackerelio/dependabot/npm_and_yarn/eslin… #265

Workflow file for this run

name: "units-test"
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
# unit tests
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm run lint
- run: npm test
# test action works running from the graph
test:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p artifacts/1/2/
echo 1 > artifacts/1.txt
echo 2 > artifacts/1/2.txt
echo 3 > artifacts/1/2/3.txt
- uses: ./
with:
directory: artifacts/
github-token: ${{ secrets.GITHUB_TOKEN }}
tag: staging