Today I Learned

TIL, 2021-11-28, Github actions fun times

Github actions

  • Literally just done with creating a YAML file .github/workflows/ANY_NAME.yml.
  • Events: Reference
  • Things to think about:
    • Cache npm install.
    • No way for us to easily access private repos unless we use a PAT/personal access token. Reference Reference
    • Much of this is syntax. Some usages: Reference
    • Persist credentials? Reference
  • Workflow: Reference
name: Run dangefile
on: [push]
jobs:
  danger:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions/[email protected]
        with:
          registry-url: 'https://npm.pkg.github.com'
      - run: npm install yarn
        env:
          NODE_AUTH_TOKEN: $
      - run: DANGER_TEST_PR='2743' npm run danger ci
        env:
          DANGER_FAKE_CI: YEP
          DANGER_TEST_REPO: kaligo/e2e-rewards-dashboard
          DANGER_GITHUB_API_TOKEN: $

This project is maintained by daryllxd