mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-11-04 07:32:59 +00:00 
			
		
		
		
	Dont fail when codecov is being finicky
This commit is contained in:
		
							
								
								
									
										50
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								.github/workflows/main-ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
name: Build
 | 
			
		||||
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
    build:
 | 
			
		||||
        name: Build
 | 
			
		||||
        runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
        steps:
 | 
			
		||||
            - uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
            - name: Set up Java 8
 | 
			
		||||
              uses: actions/setup-java@v1
 | 
			
		||||
              with:
 | 
			
		||||
                  java-version: 8
 | 
			
		||||
 | 
			
		||||
            - name: Cache gradle dependencies
 | 
			
		||||
              uses: actions/cache@v1
 | 
			
		||||
              with:
 | 
			
		||||
                  path: ~/.gradle/caches
 | 
			
		||||
                  key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
 | 
			
		||||
                  restore-keys: |
 | 
			
		||||
                      ${{ runner.os }}-gradle-
 | 
			
		||||
 | 
			
		||||
            - name: Build with Gradle
 | 
			
		||||
              run: ./gradlew build --no-daemon || ./gradlew build --no-daemon
 | 
			
		||||
 | 
			
		||||
            - name: Upload Jar
 | 
			
		||||
              uses: actions/upload-artifact@v1
 | 
			
		||||
              with:
 | 
			
		||||
                  name: CC-Tweaked
 | 
			
		||||
                  path: build/libs
 | 
			
		||||
 | 
			
		||||
            - name: Upload Coverage
 | 
			
		||||
              run: bash <(curl -s https://codecov.io/bash)
 | 
			
		||||
              continue-on-error: true
 | 
			
		||||
 | 
			
		||||
            - name: Generate Java documentation stubs
 | 
			
		||||
              run: ./gradlew luaJavadoc --no-daemon
 | 
			
		||||
 | 
			
		||||
            - name: Lint Lua code
 | 
			
		||||
              run: |
 | 
			
		||||
                  test -d bin || mkdir bin
 | 
			
		||||
                  test -f bin/illuaminate || wget -q -Obin/illuaminate https://squiddev.cc/illuaminate/linux-x86-64/illuaminate
 | 
			
		||||
                  chmod +x bin/illuaminate
 | 
			
		||||
                  bin/illuaminate lint
 | 
			
		||||
 | 
			
		||||
            - name: Check whitespace
 | 
			
		||||
              run: python3 tools/check-lines.py
 | 
			
		||||
@@ -256,3 +256,8 @@ Correctly handle:
 | 
			
		||||
 | 
			
		||||
Fixes #559
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
``` 
 | 
			
		||||
e2a635b6e5f5942f999213434054e06833c5cb06
 | 
			
		||||
Dont fail when codecov is being finicky
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user