mirror of https://github.com/matrix-org/go-neb.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							782 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							38 lines
						
					
					
						
							782 B
						
					
					
				| name: CI | |
| on: | |
|   pull_request: | |
|     paths: | |
|       - '**.go' | |
|       - 'go.mod' | |
|       - 'go.sum' | |
|     branches: | |
|       - master | |
|   push: | |
|     paths: | |
|       - '**.go' | |
|       - 'go.mod' | |
|       - 'go.sum' | |
|     branches: | |
|       - master | |
|     tags-ignore: | |
|       - '**' | |
|  | |
| jobs: | |
|   test: | |
|     name: Run the tests | |
|     runs-on: ubuntu-latest | |
|     steps: | |
|     - name: Checkout code | |
|       uses: actions/checkout@v2 | |
|     - name: Setup Go | |
|       uses: actions/setup-go@v2 | |
|       with: | |
|         go-version: '~1.18.0' | |
|     - name: Install libolm | |
|       run: sudo apt-get -y install libolm3 libolm-dev | |
|     - name: Install linters | |
|       run: | | |
|         go install honnef.co/go/tools/cmd/staticcheck@latest | |
|         go install github.com/fzipp/gocyclo/cmd/gocyclo@latest         | |
|     - name: Lint and test | |
|       run: sh ./hooks/pre-commit
 |