github.com/replit/upm@v0.0.0-20240423230255-9ce4fc3ea24c/.semaphore/semaphore.yml (about) 1 --- 2 version: v1.0 3 name: UPM 4 agent: 5 machine: 6 type: s1-goval 7 8 global_job_config: 9 env_vars: 10 - name: UPM_CI 11 value: "1" 12 prologue: 13 commands: 14 - checkout 15 - git switch --detach 16 - export PATH="/tmp:$PATH" 17 - source ./.semaphore/install_nix.sh 18 19 blocks: 20 - name: test 21 dependencies: [ ] 22 task: 23 jobs: 24 - name: test-suite 25 commands: 26 - nix develop -c nix shell -c make test-suite 27 epilogue: 28 commands: 29 - test-results publish junit.xml 30 31 - name: lint 32 dependencies: [ ] 33 task: 34 jobs: 35 - name: golang lint 36 commands: 37 - make generated 38 - cache restore golangci-lint 39 - >- 40 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh 41 | sh -s -- -b /tmp v1.55.2 42 - /tmp/golangci-lint run 43 44 after_pipeline: 45 task: 46 jobs: 47 - name: Publish Results 48 commands: 49 - test-results gen-pipeline-report