Skip to content

Commit ede8c75

Browse files
committed
README: fix up other remaining uses of 'platform'
Since they were forgotten in the previous commit.
1 parent 1d7fb8b commit ede8c75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
go-version: [1.13.x, 1.14.x]
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
runs-on: ${{ matrix.platform }}
18+
runs-on: ${{ matrix.os }}
1919
steps:
2020
- name: Install Go
2121
uses: actions/setup-go@v2
@@ -88,7 +88,7 @@ language](https://docs.github.com/en/actions/reference/context-and-expression-sy
8888

8989
```yaml
9090
- name: Run end-to-end tests on Linux
91-
if: github.event_name == 'push' && matrix.platform == 'ubuntu-latest'
91+
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
9292
run: go run ./endtoend
9393
```
9494

@@ -148,7 +148,7 @@ Use `sudo apt`, making sure to only run the step on Linux:
148148

149149
```yaml
150150
- name: Install Linux packages
151-
if: matrix.platform == 'ubuntu-latest'
151+
if: matrix.os == 'ubuntu-latest'
152152
run: sudo apt update && sudo apt install -y --no-install-recommends mypackage
153153
```
154154

0 commit comments

Comments
 (0)