Compare commits

...

2 commits

Author SHA1 Message Date
deadprogram
865b7666a1 build: download Go modules before running tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-08-12 10:56:02 +02:00
deadprogram
657158f9e1 build: use latest tinygo-dev image for container builds, add Go 1.21 to macOS builds
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-08-12 10:42:27 +02:00
2 changed files with 28 additions and 7 deletions

View file

@ -11,15 +11,17 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/tinygo-org/tinygo-dev container: ghcr.io/tinygo-org/tinygo-dev:latest
steps: steps:
- name: Work around CVE-2022-24765 - name: Work around CVE-2022-24765
# We're not on a multi-user machine, so this is safe. # We're not on a multi-user machine, so this is safe.
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
- name: TinyGo version check - name: TinyGo version check
run: tinygo version run: tinygo version
- name: Download Go modules
run: go mod download
- name: Run unit tests - name: Run unit tests
run: go test run: go test
- name: Run TinyGo smoke tests - name: Run TinyGo smoke tests

View file

@ -12,16 +12,35 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build: build-go1-18:
name: build name: build-go1-18
runs-on: macos-11 runs-on: macos-11
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v2 uses: actions/setup-go@v4.1.0
with: with:
go-version: '1.18.3' go-version: '1.18'
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3.5.3
- name: Download Go modules
run: go mod download
- name: Run unit tests
run: go test
- name: "Run macOS smoke tests"
run: make smoketest-macos
build-go1-21:
name: build-go1-21
runs-on: macos-11
steps:
- name: Install Go
uses: actions/setup-go@v4.1.0
with:
go-version: '1.21'
- name: Checkout
uses: actions/checkout@v3.5.3
- name: Download Go modules
run: go mod download
- name: Run unit tests - name: Run unit tests
run: go test run: go test
- name: "Run macOS smoke tests" - name: "Run macOS smoke tests"