ci: use checkout v2 in actions

This commit is contained in:
Haishan 2020-03-05 09:53:41 +08:00
parent 514a42b2a2
commit 4f0e75f029
3 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Run tests - name: Run tests
run: | run: |
@ -34,7 +34,7 @@ jobs:
if: github.event_name == 'push' if: github.event_name == 'push'
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Build image - name: Build image
run: docker build . --file Dockerfile --tag image run: docker build . --file Dockerfile --tag image

View file

@ -14,7 +14,7 @@ jobs:
node-version: [12.x] node-version: [12.x]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1

View file

@ -92,6 +92,7 @@ function bindAction(action, dispatch) {
return dispatch(action.apply(this, arguments)); return dispatch(action.apply(this, arguments));
}; };
} }
function bindActions(actions, dispatch) { function bindActions(actions, dispatch) {
const boundActions = {}; const boundActions = {};
for (const key in actions) { for (const key in actions) {