Skip to content

Commit

Permalink
Pin GitHub Actions at specific tags and commits (#2748)
Browse files Browse the repository at this point in the history
* Pin 3rd party action

* Pin GitHub-maintained actions to tag

* Bump Bundlewatch Node.js to v14 LTS

I have no clue what my thought process was when creating this workflow
initially. Thrown this in here as it's a minor change and it's silly to
make a PR just to update this number, in my opinion.
  • Loading branch information
davwheat authored Apr 3, 2021
1 parent cef2cf5 commit b1f197b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:

jobs:
build:
name: JS / Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: flarum/action-build@master
- name: Check out code
uses: actions/checkout@v2

- name: Build production JS
uses: flarum/action-build@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Set up Node
uses: actions/setup-node@v2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pr_size_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ jobs:
name: Bundlewatch

steps:
- uses: actions/checkout@master
- name: Check out code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: "12"
node-version: "14"

- name: Install JS dependencies
run: npm ci
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ jobs:
name: 'PHP ${{ matrix.php }} / ${{ matrix.db }} ${{ matrix.prefixStr }}'

steps:
- uses: actions/checkout@master
- name: Check out code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@0b9d33cd0782337377999751fc10ea079fdd7104 # pin@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
Expand Down

0 comments on commit b1f197b

Please sign in to comment.