mirror of
				https://github.com/zigzap/zap.git
				synced 2025-10-21 23:54:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Works with Zig 0.13.0
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|     - master
 | |
|   pull_request:
 | |
|     branches:
 | |
|     - master
 | |
|   workflow_dispatch:
 | |
| 
 | |
| jobs:
 | |
|   ci:
 | |
|     strategy:
 | |
|       matrix:
 | |
|         platform: [ubuntu-latest, macos-latest]
 | |
|     runs-on: ${{ matrix.platform }}
 | |
|     steps:
 | |
|       - uses: actions/checkout@v3
 | |
|       - uses: goto-bus-stop/setup-zig@v2
 | |
|         with:
 | |
|           version: 0.14.0
 | |
|       - name: Check zig version
 | |
|         run: zig version
 | |
|       - name: Build all examples
 | |
|         run: zig build all
 | |
|       # Run tests separately so we can see more clearly which one fails
 | |
|       # Also, the test runner tries to run tests concurrently, which causes
 | |
|       # conflicts when port numbers are re-used in the tests
 | |
|       - name: Run mustache tests
 | |
|         run: zig build test-mustache
 | |
|       - name: Run httpparams tests
 | |
|         run: zig build test-httpparams
 | |
|       - name: Run sendfile tests
 | |
|         run: zig build test-sendfile
 | |
|       - name: Run authentication tests
 | |
|         run: zig build test-authentication
 | |
|       - name: Report end of tests
 | |
|         run: echo "tests finished"
 | 
