diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..600eece --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI +on: + push: + paths-ignore: + - 'README.md' + pull_request: + types: [opened] + paths-ignore: + - 'README.md' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.54 + - name: Clone redis tester + uses: actions/checkout@v4 + with: + repository: hhow09/redis-tester + token: ${{ secrets.TESTER_REPO_PAT }} + path: redis-tester + - name: Run redis tester + run: | + cd redis-tester + echo "CODECRAFTERS_SUBMISSION_DIR = ../ \n" > .env + make test_all_with_redis \ No newline at end of file